| | |
| | | @TableField(exist = false) |
| | | private String statusInfo; |
| | | |
| | | @ApiModelProperty(value = "最低年龄", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer minAge; |
| | | |
| | | @ApiModelProperty(value = "最高年龄", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer maxAge; |
| | | |
| | | @ApiModelProperty(value = "保险费用(人/天)", example = "1") |
| | | @TableField(exist = false) |
| | | private BigDecimal price; |
| | | |
| | | @ApiModelProperty(value = "保险时间单位0天 1半月 2月 3年", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer timeUnit; |
| | | |
| | | @ApiModelProperty(value = "特别约定") |
| | | @TableField(exist = false) |
| | | private String specialAgreement; |
| | | |
| | | @ApiModelProperty(value = "特别说明") |
| | | @TableField(exist = false) |
| | | private String specialInfo; |
| | | |
| | | @ApiModelProperty(value = "其他说明") |
| | | @TableField(exist = false) |
| | | private String ortherInfo; |
| | | |
| | | |
| | | @ApiModelProperty(value = "日志记录") |
| | | @TableField(exist = false) |
| | |
| | | if (Objects.isNull(insuranceApply)) { |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if (!(Constants.equalsInteger(insuranceApply.getStatus(), |
| | | Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey())||Constants.equalsInteger(insuranceApply.getStatus(), |
| | | Constants.InsuranceApplyStatus.WTB_DONE.getKey())) |
| | | if (!(Constants.equalsInteger(insuranceApply.getStatus(), Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey()) |
| | | ||Constants.equalsInteger(insuranceApply.getStatus(), Constants.InsuranceApplyStatus.WTB_DONE.getKey()) |
| | | ) |
| | | ) { |
| | | throw new BusinessException(ResponseStatus.DATA_ERRO.getCode(), "保单状态错误"); |
| | | } |
| | |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(!Objects.isNull(model.getType()),ApplyChange::getType,model.getType()) |
| | | .eq(!Objects.isNull(model.getStatus())&&!model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()),ApplyChange::getStatus,model.getStatus()) |
| | | .in(!Objects.isNull(model.getStatus())&&model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()),ApplyChange::getStatus, |
| | | .in(!Objects.isNull(model.getStatus())&&model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()), |
| | | ApplyChange::getStatus, |
| | | Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey(), |
| | | Constants.ApplyChangeStatus.RETURN_APPLY_SIGNATURE.getKey()) |
| | | .eq(!Objects.isNull(model.getUnionApplyId()),InsuranceApply::getUnionApplyId,model.getUnionApplyId()) |
| | |
| | | MPJLambdaWrapper<UnionApply> queryWrapper = new MPJLambdaWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.selectAll(UnionApply.class); |
| | | queryWrapper.selectAs(Solutions::getName,UnionApply::getSolutionName); |
| | | queryWrapper.selectAs(Solutions::getName,UnionApply::getSolutionName) |
| | | .selectAs(Solutions::getMaxAge,UnionApply::getMaxAge) |
| | | .selectAs(Solutions::getMinAge,UnionApply::getMinAge) |
| | | .selectAs(Solutions::getPrice,UnionApply::getPrice) |
| | | .selectAs(Solutions::getTimeUnit,UnionApply::getTimeUnit) |
| | | .selectAs(Solutions::getOrtherInfo,UnionApply::getOrtherInfo) |
| | | .selectAs(Solutions::getSpecialAgreement,UnionApply::getSpecialAgreement) |
| | | .selectAs(Solutions::getSpecialInfo,UnionApply::getSpecialInfo); |
| | | queryWrapper.select("(select count(b.id) from apply_detail b where b.isdeleted=0 and b.union_apply_id=t.id) as insureNum "); |
| | | queryWrapper.leftJoin(Solutions.class,Solutions::getId,UnionApply::getSolutionId); |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | |
| | | if(insuranceApplyList.size()!=saveUnionApplyDTO.getApplyIds().size()){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"存在数据已处理,请刷新重试"); |
| | | } |
| | | |
| | | saveUnionApplyDTO.setEndDate(DateUtil.getMontageDate(saveUnionApplyDTO.getEndDate(),2)); |
| | | UnionApply unionApply = new UnionApply(); |
| | | unionApply.setCreateDate(new Date()); |
| | | unionApply.setCreator(user.getId()); |