| | |
| | | @ApiOperation("根据ID查询") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:insurance:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(insuranceService.findById(id)); |
| | | public ApiResponse findById(@PathVariable Integer id,Integer type) { |
| | | return ApiResponse.success(insuranceService.findByIdAndType(id,type)); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.Solutions; |
| | | import com.doumee.dao.business.model.SolutionsBase; |
| | | import com.doumee.service.business.SolutionsBaseService; |
| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author 江蹄蹄 |
| | |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:solutionsbase:update") |
| | | public ApiResponse updateById(@RequestBody SolutionsBase solutionsBase) { |
| | | if(Objects.isNull(solutionsBase.getSaveType()) |
| | | || Constants.equalsInteger(solutionsBase.getSaveType(),Constants.ZERO)){ |
| | | solutionsBaseService.updateById(solutionsBase); |
| | | }else{ |
| | | solutionsBaseService.saveSolutionsRisk(solutionsBase); |
| | | } |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | |
| | | @ApiModelProperty(value = "行保险生效起期") |
| | | @TableField(exist = false) |
| | | private Date parentStartTime; |
| | | |
| | | @ApiModelProperty(value = "方案基础版本主键", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer solutionBaseId; |
| | | |
| | | |
| | | @ApiModelProperty(value = "所属保险公司编码(insurance)", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer insuranceId; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "保单明细行主键") |
| | | private Integer applyDetailId; |
| | | |
| | | @ApiModelProperty(value = "报案时间") |
| | | @TableField(exist = false) |
| | | private Date reportDate; |
| | | |
| | | |
| | | @ApiModelProperty(value = "赔偿金额") |
| | | @TableField(exist = false) |
| | | @ExcelColumn(name="赔偿金额",index = 10,width = 16) |
| | |
| | | @ApiModelProperty(value = "拒绝退回日志") |
| | | @TableField(exist = false) |
| | | private SettleClaimsLog refuseSettleClaimsLog; |
| | | |
| | | @ApiModelProperty(value = "补充说明日志") |
| | | @TableField(exist = false) |
| | | private SettleClaimsLog supplementSettleClaimsLog; |
| | | |
| | | |
| | | } |
| | |
| | | @ExcelColumn(name="责任与评残条鉴定信息-款关联关系 0保单号 1关联评残条款 2劳动能力鉴定") |
| | | private Integer jdZrpctkRel; |
| | | |
| | | @ApiModelProperty(value = "报案时间") |
| | | private Date reportDate; |
| | | |
| | | } |
| | |
| | | @TableField(exist = false) |
| | | private List<Integer> worktypeIdList; |
| | | |
| | | |
| | | @ApiModelProperty(value = "保存类型:0正常数据;1风险信息", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer saveType; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @ExcelColumn(name="报案时间",index = 4,width = 20,dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createDate; |
| | | private Date reportDate; |
| | | |
| | | @ApiModelProperty(value = "出险时间") |
| | | @ExcelColumn(name="出险时间",index = 5,width = 20,dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | |
| | | void updateStatus(Insurance insurance); |
| | | |
| | | void saveLpInfo(Insurance insurance); |
| | | |
| | | Insurance findByIdAndType(Integer id,Integer type); |
| | | } |
| | |
| | | */ |
| | | void updateById(SolutionsBase solutionsBase); |
| | | |
| | | void saveSolutionsRisk(SolutionsBase solutionsBase); |
| | | /** |
| | | * 批量主键更新 |
| | | * |
| | |
| | | pidanFile.setObjType(Constants.MultiFile.CA_PD_PDF.getKey()); |
| | | pidanFile.setType(Constants.TWO); |
| | | } |
| | | multifileMapper.insertBatchSomeColumn(pidanFileList); |
| | | multifileMapper.insert(pidanFileList); |
| | | update.setApplyId(model.getApplyId()); |
| | | |
| | | |
| | |
| | | pidanFile.setObjType(Constants.MultiFile.CA_PD_PDF.getKey()); |
| | | pidanFile.setType(Constants.TWO); |
| | | } |
| | | multifileMapper.insertBatchSomeColumn(param.getPidanFileList()); |
| | | multifileMapper.insert(param.getPidanFileList()); |
| | | |
| | | // param.getPidanFile().setIsdeleted(Constants.ZERO); |
| | | // param.getPidanFile().setObjId(update.getId()); |
| | |
| | | } |
| | | |
| | | if (memberInsuranceList != null && memberInsuranceList.size() > 0) { |
| | | memberInsuranceJoinMapper.insertBatchSomeColumn(memberInsuranceList); |
| | | memberInsuranceJoinMapper.insert(memberInsuranceList); |
| | | } |
| | | |
| | | if (totalFee.compareTo(new BigDecimal(0)) != 0) { |
| | |
| | | queryWrapper.selectAs(Solutions::getId,ApplyDetail::getSolutionId); |
| | | queryWrapper.selectAs(Solutions::getName,ApplyDetail::getSolutionName); |
| | | queryWrapper.selectAs(Solutions::getType,ApplyDetail::getSolutionType); |
| | | queryWrapper.selectAs(Insurance::getBaseId,ApplyDetail::getInsuranceId); |
| | | queryWrapper.selectAs(Worktype::getName,ApplyDetail::getWorkTypeName); |
| | | queryWrapper.selectAs(Member::getIdcardNo,ApplyDetail::getIdcardNo); |
| | | queryWrapper.selectAs(Member::getName,ApplyDetail::getMemberName); |
| | | queryWrapper.selectAs(InsuranceApply::getStartTime,ApplyDetail::getParentStartTime); |
| | | queryWrapper.selectAs(InsuranceApply::getEndTime,ApplyDetail::getParentEndTime); |
| | | |
| | | queryWrapper.selectAs(Solutions::getParentId,ApplyDetail::getSolutionBaseId); |
| | | queryWrapper.leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyDetail::getDuId); |
| | | queryWrapper.leftJoin(Worktype.class,Worktype::getId,ApplyDetail::getWorktypeId); |
| | | queryWrapper.leftJoin(Member.class,Member::getId,ApplyDetail::getMemberId); |
| | | queryWrapper.leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyDetail::getApplyId); |
| | | queryWrapper.leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId); |
| | | queryWrapper.leftJoin(Insurance.class,Insurance::getId,Solutions::getInsuranceId); |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getApplyId()),ApplyDetail::getApplyId,applyDetailPageDTO.getApplyId()); |
| | | queryWrapper.ge(!Objects.isNull(applyDetailPageDTO.getApplyStatus()) |
| | | &&!applyDetailPageDTO.getApplyStatus().equals(Constants.ZERO), |
| | |
| | | model.setCreateDate(date); |
| | | list.add(model); |
| | | } |
| | | companyPermissionMapper.insertBatchSomeColumn(list); |
| | | companyPermissionMapper.insert(list); |
| | | } |
| | | return companyPermission.getId(); |
| | | } |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"保险方案【"+s.getName()+"】已被禁用,不能进行该操作"); |
| | | } |
| | | } |
| | | companySolutionJoinMapper.insertBatchSomeColumn(list); |
| | | companySolutionJoinMapper.insert(list); |
| | | //存储待办信息 |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.SOLUTIONS; |
| | | for (CompanySolution s:list) { |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"保险方案【"+s.getName()+"】已被禁用,不能进行该操作"); |
| | | } |
| | | } |
| | | companySolutionJoinMapper.insertBatchSomeColumn(list); |
| | | companySolutionJoinMapper.insert(list); |
| | | }*/ |
| | | |
| | | |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"保险方案【"+s.getName()+"】已被禁用,不能进行该操作"); |
| | | } |
| | | } |
| | | companySolutionJoinMapper.insertBatchSomeColumn(list); |
| | | companySolutionJoinMapper.insert(list); |
| | | }*/ |
| | | private void isValidCreateParam(Company company) { |
| | | if(StringUtils.isBlank(company.getPhone()) |
| | |
| | | }else { |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"请上传身份证扫描件!"); |
| | | } |
| | | multifileMapper.insertBatchSomeColumn(multifileList); |
| | | multifileMapper.insert(multifileList); |
| | | } |
| | | private void dealFileDataForUpdate(Company company ) { |
| | | |
| | |
| | | .eq(Multifile::getIsdeleted,Constants.ZERO) |
| | | .in(Multifile::getObjType,objList) |
| | | ); |
| | | multifileMapper.insertBatchSomeColumn(multifileList); |
| | | multifileMapper.insert(multifileList); |
| | | } |
| | | } |
| | | |
| | |
| | | companyPermission.setType(Constants.ONE); |
| | | companyPermissionList.add(companyPermission); |
| | | } |
| | | companyPermissionMapper.insertBatchSomeColumn(companyPermissionList); |
| | | companyPermissionMapper.insert(companyPermissionList); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | if(newWorktypes!=null &&newWorktypes.size()>0){ |
| | | //批量查询工种关联记录 |
| | | duWorktypeMapper.insertBatchSomeColumn(newWorktypes); |
| | | duWorktypeMapper.insert(newWorktypes); |
| | | } |
| | | } |
| | | |
| | |
| | | ); |
| | | |
| | | } |
| | | memberInsuranceJoinMapper.insertBatchSomeColumn(memberInsuranceList); |
| | | memberInsuranceJoinMapper.insert(memberInsuranceList); |
| | | } |
| | | |
| | | this.updateApplyCurrentFee(insuranceApply.getId(),null); |
| | |
| | | this.checkMemberSolution(solutions.getParentId(),member.getIdcardNo(),member.getName(),insuranceApply.getStartTime(),insuranceApply.getEndTime(),insuranceApply.getId()); |
| | | } |
| | | if(CollectionUtils.isNotEmpty(addMemberList)){ |
| | | memberJoinMapper.insertBatchSomeColumn(addMemberList); |
| | | memberJoinMapper.insert(addMemberList); |
| | | } |
| | | memberList.addAll(addMemberList); |
| | | for (int i = 0; i < applyDetailList.size(); i++) { |
| | |
| | | } |
| | | Long end = System.currentTimeMillis(); |
| | | logger.error("处理单数据结束时间:=========================>"+end +";耗时:====》"+(end-start)); |
| | | applyDetailJoinMapper.insertBatchSomeColumn(applyDetailList); |
| | | applyDetailJoinMapper.insert(applyDetailList); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Insurance findById(Integer id) { |
| | | public Insurance findByIdAndType(Integer id,Integer type) { |
| | | Insurance model = insuranceMapper.selectById(id); |
| | | if(model == null || !Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY ); |
| | | } |
| | | List<Worktype> worktypeList = worktypeMapper.selectList(new QueryWrapper<Worktype>().lambda() |
| | | .eq(Worktype::getInsuranceId,id) |
| | | .eq(Worktype::getIsdeleted,Constants.ZERO) |
| | | .orderByAsc(Worktype::getSortnum)); |
| | | model.setWorktypeList(worktypeList); |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode()+ |
| | | systemDictDataBiz.queryByCode(Constants.OSS,Constants.INSURANCE).getCode(); |
| | | //附件信息 |
| | |
| | | lpFile.setFileurlFull(path + lpFile.getFileurl()); |
| | | model.setLpFile(lpFile); |
| | | } |
| | | |
| | | if(Objects.nonNull(type)&&Constants.equalsInteger(type,Constants.ONE)){ |
| | | return model; |
| | | } |
| | | List<Worktype> worktypeList = worktypeMapper.selectList(new QueryWrapper<Worktype>().lambda() |
| | | .eq(Worktype::getInsuranceId,id) |
| | | .eq(Worktype::getIsdeleted,Constants.ZERO) |
| | | .orderByAsc(Worktype::getSortnum)); |
| | | model.setWorktypeList(worktypeList); |
| | | return model; |
| | | } |
| | | |
| | | @Override |
| | | public Insurance findById(Integer id) { |
| | | return this.findByIdAndType(id,null); |
| | | // Insurance model = insuranceMapper.selectById(id); |
| | | // if(model == null || !Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){ |
| | | // throw new BusinessException(ResponseStatus.DATA_EMPTY ); |
| | | // } |
| | | // List<Worktype> worktypeList = worktypeMapper.selectList(new QueryWrapper<Worktype>().lambda() |
| | | // .eq(Worktype::getInsuranceId,id) |
| | | // .eq(Worktype::getIsdeleted,Constants.ZERO) |
| | | // .orderByAsc(Worktype::getSortnum)); |
| | | // model.setWorktypeList(worktypeList); |
| | | // String path = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode()+ |
| | | // systemDictDataBiz.queryByCode(Constants.OSS,Constants.INSURANCE).getCode(); |
| | | // //附件信息 |
| | | // Multifile lpStampTempFile = multifileMapper.selectOne(new QueryWrapper<Multifile>().lambda().eq(Multifile::getIsdeleted,Constants.ZERO) |
| | | // .eq(Multifile::getObjId,id).eq(Multifile::getObjType,Constants.MultiFile.LP_STAMP_FILE.getKey()).last("limit 1")); |
| | | // if(Objects.nonNull(lpStampTempFile)){ |
| | | // lpStampTempFile.setFileurlFull(path + lpStampTempFile.getFileurl()); |
| | | // model.setLpStampTempFile(lpStampTempFile); |
| | | // } |
| | | // |
| | | // Multifile lpFile = multifileMapper.selectOne(new QueryWrapper<Multifile>().lambda().eq(Multifile::getIsdeleted,Constants.ZERO) |
| | | // .eq(Multifile::getObjId,id).eq(Multifile::getObjType,Constants.MultiFile.LP_FILE.getKey()).last("limit 1")); |
| | | // if(Objects.nonNull(lpFile)){ |
| | | // lpFile.setFileurlFull(path + lpFile.getFileurl()); |
| | | // model.setLpFile(lpFile); |
| | | // } |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public Insurance findOne(Insurance insurance) { |
| | |
| | | if(Objects.isNull(knowledge) |
| | | || StringUtils.isBlank(knowledge.getTitle()) |
| | | || StringUtils.isBlank(knowledge.getLink()) |
| | | || Objects.isNull(knowledge.getCityId()) |
| | | // || Objects.isNull(knowledge.getCityId()) |
| | | || Objects.isNull(knowledge.getProvinceId()) |
| | | || StringUtils.isBlank(knowledge.getYearInfo()) |
| | | || StringUtils.isBlank(knowledge.getTitle()) |
| | |
| | | || StringUtils.isEmpty(labels.getName())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | if(labelsMapper.selectCount(new QueryWrapper<Labels>().lambda().eq(Labels::getIsdeleted,Constants.ZERO).eq(Labels::getStatus,Constants.ZERO))>=5){ |
| | | if(labelsMapper.selectCount(new QueryWrapper<Labels>().lambda().eq(Labels::getIsdeleted,Constants.ZERO).eq(Labels::getStatus,Constants.ZERO))>=50){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,最多配置50个标签~"); |
| | | } |
| | | labelsMapper.delete(new QueryWrapper<Labels>().lambda().eq(Labels::getName,labels.getName())); |
| | |
| | | } |
| | | if(!Constants.equalsObject(settleClaims.getStatus(),Constants.ZERO) |
| | | &&( Objects.isNull(settleClaims.getExtData().getBxName()) |
| | | || Objects.isNull(settleClaims.getExtData().getReportDate()) |
| | | || Objects.isNull(settleClaims.getExtData().getBxCode()) |
| | | || Objects.isNull(settleClaims.getExtData().getBxEnddate()) |
| | | || Objects.isNull(settleClaims.getExtData().getBxOrg()) |
| | |
| | | )>Constants.ZERO){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"存在提报中的报案数据!"); |
| | | } |
| | | |
| | | settleClaims.setCreateDate(new Date()); |
| | | settleClaims.setIsdeleted(Constants.ZERO); |
| | | settleClaims.setCompanyId(loginUserInfo.getCompanyId()); |
| | |
| | | settleClaims.setRefuseSettleClaimsLog(settleClaimsLog); |
| | | } |
| | | |
| | | |
| | | if((Constants.equalsInteger(settleClaims.getStatus(),Constants.SettleClaimsStatus.ACCEPTANCE.getKey()) |
| | | || Constants.equalsInteger(settleClaims.getStatus(),Constants.SettleClaimsStatus.WAIT_AUDIT_COMPENSATION.getKey())) |
| | | && Constants.equalsInteger(settleClaims.getWaitSupplement(),Constants.ONE)){ |
| | | SettleClaimsLog settleClaimsLog = settleClaimsLogJoinMapper.selectJoinOne(SettleClaimsLog.class, |
| | | new MPJLambdaWrapper<SettleClaimsLog>() |
| | | .selectAll(SettleClaimsLog.class) |
| | | .selectAs(SystemUser::getRealname,SettleClaimsLog::getCreatorName) |
| | | .selectAs(SystemUser::getType,SettleClaimsLog::getCreatorType) |
| | | .selectAs(Company::getName,SettleClaimsLog::getCompanyName) |
| | | .leftJoin(SystemUser.class,SystemUser::getId,SettleClaimsLog::getCreator) |
| | | .leftJoin(Company.class,Company::getId,SystemUser::getCompanyId) |
| | | .eq(SettleClaimsLog::getSettleClainmsId,settleClaims.getId()) |
| | | .in(SettleClaimsLog::getObjType,Constants.SettleClaimsLogType.SUPPLEMENT_DESCRIBE.getKey()) |
| | | .orderByDesc(SettleClaimsLog::getCreateDate) |
| | | .last(" limit 1") |
| | | ); |
| | | settleClaims.setSupplementSettleClaimsLog(settleClaimsLog); |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | .selectAs(Member::getIdcardNo,SettleClaims::getMemberIdcardNo) |
| | | .selectAs(Worktype::getName,SettleClaims::getWorktypeName) |
| | | .selectAs(InsuranceApply::getStartTime,SettleClaims::getBaoxianStartTime) |
| | | .selectAs(InsuranceApply::getCode,SettleClaims::getApplyCode) |
| | | .selectAs(DispatchUnit::getName,SettleClaims::getDuName) |
| | | .selectAs(InsuranceApply::getStartTime,SettleClaims::getBaoxianStartTime) |
| | | .selectAs(InsuranceApply::getEndTime,SettleClaims::getBaoxianEndTime) |
| | |
| | | }else { |
| | | queryWrapper. in(Company::getId, user.getCompanyIdList()); |
| | | } |
| | | } else { |
| | | queryWrapper.ne(SettleClaims::getStatus,Constants.SettleClaimsStatus.WAIT_ACCEPTANCE.getKey()); |
| | | }{ |
| | | //企业用户只看自己的数据 |
| | | pageWrap.getModel().setCompanyId(user.getCompanyId()); |
| | | } |
| | |
| | | .selectAs(SettleClaimsExt::getBxStartdate,SettleClaims::getBaoxianStartTime) |
| | | .selectAs(SettleClaimsExt::getBxEnddate,SettleClaims::getBaoxianEndTime) |
| | | .selectAs(SettleClaimsExt::getBxCode,SettleClaims::getApplyCode) |
| | | .selectAs(SettleClaimsExt::getReportDate,SettleClaims::getReportDate) |
| | | .innerJoin(SettleClaimsExt.class,SettleClaimsExt::getSettileClaimsId,SettleClaims::getId); |
| | | queryWrapper.eq(SettleClaims::getIsdeleted,Constants.ZERO); |
| | | queryWrapper.eq(SettleClaims::getOrigin,Constants.ONE); |
| | |
| | | queryWrapper.orderByDesc(SettleClaims::getCreateDate); |
| | | PageData<SettleClaims> pageData = PageData.from(settleClaimsJoinMapper.selectJoinPage(page,SettleClaims.class, queryWrapper)); |
| | | for (SettleClaims settleClaims:pageData.getRecords()) { |
| | | if(Objects.nonNull(settleClaims.getStatus())){ |
| | | settleClaims.setStatusName(Constants.SettleClaimsStatus.getName(settleClaims.getStatus())); |
| | | } |
| | | settleClaims.setPcAccount(settleClaims.getHpAccount().add(settleClaims.getHpOtherAccount())); |
| | | } |
| | | return pageData; |
| | |
| | | BeanUtils.copyProperties(settleClaimsDTO,settleClaims); |
| | | settleClaims.setReportNumStatus(Constants.ZERO); |
| | | settleClaims.setOrigin(Constants.ZERO); |
| | | if(Constants.equalsInteger(settleClaimsDTO.getSaveType(),Constants.ONE)&&StringUtils.isBlank(settleClaims.getCode())){ |
| | | Long nextCode = settleClaimsMapper.selectCount(new QueryWrapper<SettleClaims>().lambda().ne(SettleClaims::getStatus,Constants.SettleClaimsStatus.WAIT_ACCEPTANCE.getKey()) |
| | | .eq(SettleClaims::getOrigin,Constants.ZERO) .like(SettleClaims::getCreateDate,DateUtil.getDate(new Date(),"yyyy-MM-dd")) |
| | | )+1; |
| | | settleClaims.setCode("YYBLP-"+DateUtil.getDate(new Date(),"yyyyMMdd")+ |
| | | (StringUtils.leftPad(nextCode.toString(),2,"0")) |
| | | ); |
| | | } |
| | | if(Objects.nonNull(settleClaims.getId())){ |
| | | settleClaims.setEditDate(new Date()); |
| | | settleClaims.setEditor(loginUserInfo.getId()); |
| | |
| | | } |
| | | Date happenTime = DateUtil.StringToDate(settleClaims.getHappenTime()); |
| | | if(happenTime.getTime() < insuranceApply.getStartTime().getTime() || happenTime.getTime() > insuranceApply.getEndTime().getTime()){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"事故发生事件未在保单生效范围内"); |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"事故发生时间未在保单生效范围内"); |
| | | } |
| | | Solutions solutions = solutionsMapper.selectById(insuranceApply.getSolutionId()); |
| | | if(Objects.isNull(solutions)){ |
| | |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"仅可修改一次报案号"); |
| | | } |
| | | if(!( |
| | | (Constants.equalsInteger(model.getStatus(),Constants.SettleClaimsStatus.ACCEPTANCE.getKey())&&Constants.equalsInteger(model.getReportNumStatus(),Constants.ONE)) |
| | | ||(Constants.equalsInteger(model.getStatus(),Constants.SettleClaimsStatus.CONFIRM_INFORMATION.getKey()) |
| | | (Constants.equalsInteger(model.getStatus(),Constants.SettleClaimsStatus.ACCEPTANCE.getKey()) |
| | | &&Constants.equalsInteger(model.getReportNumStatus(),Constants.ONE)) |
| | | ||((Constants.equalsInteger(model.getStatus(),Constants.SettleClaimsStatus.CONFIRM_INFORMATION.getKey()) |
| | | || Constants.equalsInteger(model.getStatus(),Constants.SettleClaimsStatus.ACCEPTANCE.getKey()) |
| | | || Constants.equalsInteger(model.getStatus(),Constants.SettleClaimsStatus.WAIT_DISCUSS_AUDIT.getKey())) |
| | | &&Constants.equalsInteger(model.getReportNumStatus(),Constants.ZERO)) |
| | | // ||(Constants.equalsInteger(model.getStatus(),Constants.SettleClaimsStatus.WAIT_DEAL.getKey()) |
| | | // &&Constants.equalsInteger(model.getReportNumStatus(),Constants.ZERO)) |
| | |
| | | //受理商议审批 |
| | | settleClaimsMapper.update(null,new UpdateWrapper<SettleClaims>().lambda() |
| | | .eq(SettleClaims::getId,dto.getId()).set(SettleClaims::getEditDate,DateUtil.getCurrDateTime()).set(SettleClaims::getEditor,loginUserInfo.getId()) |
| | | .set(SettleClaims::getStatus,Constants.SettleClaimsStatus.REJECT_DEAL.getKey())); |
| | | .set(SettleClaims::getStatus,Constants.SettleClaimsStatus.WAIT_DISCUSS_AUDIT.getKey())); |
| | | //存储日志 |
| | | this.saveSettleClaimsLog(settleClaims, |
| | | Constants.SettleClaimsLogType.PLATFORM_WAIT_DISCUSS, |
| | | dto.getDescribe(),Constants.SettleClaimsStatus.REJECT_DEAL); |
| | | dto.getDescribe(),Constants.SettleClaimsStatus.WAIT_DISCUSS_AUDIT); |
| | | } |
| | | } |
| | | |
| | |
| | | //历史版本的工种信息 |
| | | SolutionWorktype newType = new SolutionWorktype(); |
| | | BeanUtils.copyProperties(w, newType); |
| | | newType.setId(null); |
| | | newType.setSolutionId(newModel.getId()); |
| | | solutionWorktypeJoinMapper.insert(newType); |
| | | } |
| | |
| | | || Objects.isNull(solutionsBase.getAddValidDays()) |
| | | || Objects.isNull(solutionsBase.getDelValidDays()) |
| | | || Objects.isNull(solutionsBase.getInsuranceId()) |
| | | || Objects.isNull(solutionsBase.getRiskDelayStatus()) |
| | | || Objects.isNull(solutionsBase.getRiskDelayTime()) |
| | | || Objects.isNull(solutionsBase.getRiskDelayUnit()) |
| | | || Objects.isNull(solutionsBase.getRiskNewUserStatus()) |
| | | || Objects.isNull(solutionsBase.getRiskNewUserTime()) |
| | | || Objects.isNull(solutionsBase.getRiskNewUserUnit()) |
| | | // || Objects.isNull(solutionsBase.getRiskDelayStatus()) |
| | | // || Objects.isNull(solutionsBase.getRiskDelayTime()) |
| | | // || Objects.isNull(solutionsBase.getRiskDelayUnit()) |
| | | // || Objects.isNull(solutionsBase.getRiskNewUserStatus()) |
| | | // || Objects.isNull(solutionsBase.getRiskNewUserTime()) |
| | | // || Objects.isNull(solutionsBase.getRiskNewUserUnit()) |
| | | |
| | | ||solutionsBase.getInsuranceId()==null |
| | | || Constants.formatIntegerNum(solutionsBase.getMaxAge()) < 0 |
| | |
| | | if(Constants.equalsInteger(solutionsBase.getValidType(),Constants.ZERO) && Objects.isNull(solutionsBase.getValidTypeNum())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void saveSolutionsRisk(SolutionsBase solutionsBase){ |
| | | if( Objects.isNull(solutionsBase) |
| | | || Objects.isNull(solutionsBase.getId()) |
| | | ||Objects.isNull(solutionsBase.getRiskDelayStatus()) |
| | | || Objects.isNull(solutionsBase.getRiskDelayTime()) |
| | | || Objects.isNull(solutionsBase.getRiskDelayUnit()) |
| | | || Objects.isNull(solutionsBase.getRiskNewUserStatus()) |
| | | || Objects.isNull(solutionsBase.getRiskNewUserTime()) |
| | | || Objects.isNull(solutionsBase.getRiskNewUserUnit())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | SolutionsBase model = solutionsBaseMapper.selectById(solutionsBase.getId()); |
| | | if(Objects.isNull(model)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | solutionsBaseMapper.update(new UpdateWrapper<SolutionsBase>().lambda() |
| | | .set(SolutionsBase::getEditDate,new Date()) |
| | | .set(SolutionsBase::getRiskDelayStatus,solutionsBase.getRiskDelayStatus()) |
| | | .set(SolutionsBase::getRiskDelayTime,solutionsBase.getRiskDelayTime()) |
| | | .set(SolutionsBase::getRiskDelayUnit,solutionsBase.getRiskDelayUnit()) |
| | | .set(SolutionsBase::getRiskNewUserStatus,solutionsBase.getRiskNewUserStatus()) |
| | | .set(SolutionsBase::getRiskNewUserTime,solutionsBase.getRiskNewUserTime()) |
| | | .set(SolutionsBase::getRiskNewUserUnit,solutionsBase.getRiskNewUserUnit()) |
| | | .eq(SolutionsBase::getId,solutionsBase.getId()) |
| | | ); |
| | | } |
| | | |
| | | @Override |
| | |
| | | solutionsBaseMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {BusinessException.class,Exception.class}) |
| | | public void updateById(SolutionsBase solutionsBase) { |
| | |
| | | taxDetial.setTotalFee(insuranceApply.getCurrentFee()); |
| | | taxDetial.setType(Constants.ZERO); |
| | | } |
| | | taxDetailJoinMapper.insertBatchSomeColumn(taxDetialList); |
| | | taxDetailJoinMapper.insert(taxDetialList); |
| | | |
| | | |
| | | //存储待办信息 |
| | |
| | | } |
| | | } |
| | | if(CollectionUtils.isNotEmpty(taxDetailList)){ |
| | | taxDetailJoinMapper.insertBatchSomeColumn(taxDetailList); |
| | | taxDetailJoinMapper.insert(taxDetailList); |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"无可开票数据,操作失败"); |
| | | } |
| | |
| | | ); |
| | | |
| | | } |
| | | memberInsuranceJoinMapper.insertBatchSomeColumn(memberInsuranceList); |
| | | memberInsuranceJoinMapper.insert(memberInsuranceList); |
| | | } |
| | | BigDecimal detailFee = Constants.reduceFee(solutions,solutions.getPrice().add(serverCost),insuranceApply.getStartTime(),insuranceApply.getFinalEndTime(), |
| | | unionApplyBXDDTO.getStartTime(),unionApplyBXDDTO.getEndTime()); |
| | |
| | | pidanFile.setObjType(Constants.MultiFile.WTB_CA_DONE_PDF.getKey()); |
| | | pidanFile.setType(Constants.TWO); |
| | | } |
| | | multifileMapper.insertBatchSomeColumn(pidanFileList); |
| | | multifileMapper.insert(pidanFileList); |
| | | |
| | | for (ApplyChange applyChange:applyChangeList) { |
| | | for (Multifile pidanFile:pidanFileList) { |