| | |
| | | .eq(Notices::getObjId,model.getId())); |
| | | Notices notices = new Notices(noticeObjectType,Constants.ZERO,model.getId(),model.getSolutionsName(),model.getCompanyId(),Constants.NoticeType.TWO); |
| | | noticesMapper.insert(notices); |
| | | Solutions solutions = solutionsMapper.selectById(model.getSolutionId()); |
| | | if(Objects.nonNull(solutions)&&Objects.nonNull(solutions.getShopId())){ |
| | | Notices shopNotices = new Notices(noticeObjectType,Constants.TWO,model.getId(),model.getSolutionsName(),solutions.getShopId(),Constants.NoticeType.TWO); |
| | | noticesMapper.insert(shopNotices); |
| | | } |
| | | |
| | | |
| | | |
| | | Multifile f = new Multifile(); |
| | | f.setIsdeleted(Constants.ZERO); |
| | |
| | | multifileMapper.insert(f); |
| | | |
| | | |
| | | |
| | | //数据日志 |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.WTB_FINISH_MEMBER_LIST; |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(), null |
| | | ,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | | |
| | | Solutions solutions = solutionsMapper.selectById(model.getSolutionId()); |
| | | //待办通知 |
| | | if(Objects.nonNull(solutions)&&Objects.nonNull(solutions.getShopId())){ |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.INSURANCE_APPLY; |
| | | Notices notices = new Notices(noticeObjectType,Constants.TWO,model.getId(),model.getSolutionsName(), |
| | | solutions.getShopId(), Constants.NoticeType.SEVEN); |
| | | notices.setParam1(model.getId().toString()); |
| | | noticesMapper.insert(notices); |
| | | } |
| | | |
| | | |
| | | return f; |
| | | } |
| | | |
| | |
| | | companyId, Constants.NoticeType.TWO); |
| | | notices.setParam1(model.getApplyId().toString()); |
| | | noticesMapper.insert(notices); |
| | | |
| | | Solutions solutions = solutionsMapper.selectById(model.getSolutionsId()); |
| | | //商户待办 |
| | | if(Objects.nonNull(solutions)&&Objects.nonNull(solutions.getShopId())){ |
| | | Notices shopNotices = new Notices(noticeObjectType,Constants.TWO, |
| | | model.getId(),solutions.getName(),solutions.getShopId(),Constants.NoticeType.TWO); |
| | | notices.setParam1(model.getApplyId().toString()); |
| | | noticesMapper.insert(shopNotices); |
| | | } |
| | | |
| | | Multifile f = new Multifile(); |
| | | f.setIsdeleted(Constants.ZERO); |
| | |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(), null,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | | |
| | | |
| | | Solutions solutions = solutionsMapper.selectById(model.getSolutionsId()); |
| | | //待办通知 |
| | | if(Objects.nonNull(solutions)&&Objects.nonNull(solutions.getShopId())){ |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.APPLY_CHANGE; |
| | | if(model.getType().equals(Constants.ONE)){ |
| | | noticeObjectType = Constants.NoticeObjectType.CHANGE_FACTORY; |
| | | } |
| | | Notices notices = new Notices(noticeObjectType,Constants.TWO,model.getId(),model.getSolutionsName(), |
| | | solutions.getShopId(), Constants.NoticeType.SEVEN); |
| | | notices.setParam1(model.getApplyId().toString()); |
| | | noticesMapper.insert(notices); |
| | | } |
| | | return f; |
| | | } |
| | | |
| | |
| | | .selectAll(ApplyChange.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Solutions::getId,ApplyChange::getSolutionsId) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .selectAs(InsuranceApply::getCompanyId,ApplyChange::getCompanyId) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | |
| | | } |
| | | } |
| | | |
| | | //委托保 加减保/换厂 签署人员名单 |
| | | chagneList = applyChangeMapper.selectJoinList(ApplyChange.class, |
| | | new MPJLambdaWrapper<ApplyChange>() |
| | | .selectAll(ApplyChange.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Solutions::getId,ApplyChange::getSolutionsId) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .selectAs(InsuranceApply::getCompanyId,ApplyChange::getCompanyId) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | |
| | | .selectAll(ApplyChange.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Solutions::getId,ApplyChange::getSolutionsId) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .selectAs(InsuranceApply::getCompanyId,ApplyChange::getCompanyId) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | |
| | | .selectAll(ApplyChange.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Solutions::getId,ApplyChange::getSolutionsId) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .selectAs(InsuranceApply::getCompanyId,ApplyChange::getCompanyId) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | |
| | | |
| | | //存储待办信息 |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.INSURANCE_APPLY; |
| | | //删除其他待办 |
| | | noticesMapper.delete(new QueryWrapper<Notices>().lambda().eq(Notices::getObjType,noticeObjectType.getKey()) |
| | | .ne(Notices::getType,Constants.NoticeType.SIX.getStatus()) |
| | | .eq(Notices::getObjId,model.getId())); |
| | | if(Constants.equalsObject(solutions.getType(),Constants.ZERO)) { |
| | | //删除其他待办 |
| | | noticesMapper.delete(new QueryWrapper<Notices>().lambda() |
| | | .eq(Notices::getObjType, noticeObjectType.getKey()) |
| | | .ne(Notices::getType, Constants.NoticeType.SIX.getStatus()) |
| | | .eq(Notices::getObjId, model.getId())); |
| | | }else{ |
| | | //删除全部待办 |
| | | noticesMapper.delete(new QueryWrapper<Notices>().lambda() |
| | | .eq(Notices::getObjType, noticeObjectType.getKey()) |
| | | .eq(Notices::getObjId, model.getId())); |
| | | } |
| | | |
| | | |
| | | String info =applyLogType.getInfo(); |
| | | if(StringUtils.isNotBlank(update.getCheckInfo())){ |
| | | info = info.replace("${param}", update.getCheckInfo()); |
| | |
| | | // info = info.replace("${param}", update.getCheckInfo()); |
| | | ApplyLog log = new ApplyLog(insuranceApply,applyLogType.getName(),info,insuranceApply.getId(),applyLogType.getKey(),null, null); |
| | | applyLogMapper.insert(log); |
| | | |
| | | |
| | | //发送待办业务 |
| | | //存储待办信息 |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.INSURANCE_APPLY; |
| | | //删除其他待办 |
| | | noticesMapper.delete(new QueryWrapper<Notices>().lambda().eq(Notices::getObjType,noticeObjectType.getKey()) |
| | | .ne(Notices::getType,Constants.NoticeType.SIX.getStatus()) |
| | | .eq(Notices::getObjId,insuranceApply.getId())); |
| | | Notices notices = new Notices(noticeObjectType,Constants.ZERO,insuranceApply.getId(),solutions.getName(),insuranceApply.getCompanyId(),Constants.NoticeType.ZERO); |
| | | noticesMapper.insert(notices); |
| | | |
| | | //直保业务发送待办 |
| | | if(Constants.equalsInteger(solutions.getType(),Constants.ZERO)){ |
| | | //存储待办信息 |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.INSURANCE_APPLY; |
| | | //删除其他待办 |
| | | noticesMapper.delete(new QueryWrapper<Notices>().lambda().eq(Notices::getObjType,noticeObjectType.getKey()) |
| | | .ne(Notices::getType,Constants.NoticeType.SIX.getStatus()) |
| | | .eq(Notices::getObjId,insuranceApply.getId())); |
| | | //存储平台待办 |
| | | Notices notices = new Notices(noticeObjectType,Constants.ZERO,insuranceApply.getId(),solutions.getName(),insuranceApply.getCompanyId(),Constants.NoticeType.ZERO); |
| | | noticesMapper.insert(notices); |
| | | //商户待办 |
| | | if(Objects.nonNull(solutions.getShopId())){ |
| | | Notices shopNotices = new Notices(noticeObjectType,Constants.TWO, |
| | | insuranceApply.getId(),solutions.getName(),solutions.getShopId(),Constants.NoticeType.ZERO); |
| | | noticesMapper.insert(shopNotices); |
| | | } |
| | | } |
| | | |
| | | return insuranceApply.getId(); |
| | | } |
| | |
| | | Notices notices = new Notices(noticeObjectType,Constants.ZERO,insuranceApply.getId(),solutions.getName(), |
| | | insuranceApply.getCompanyId(), Constants.NoticeType.THREE); |
| | | noticesMapper.insert(notices); |
| | | |
| | | |
| | | //商户待办 |
| | | if(Objects.nonNull(solutions.getShopId())){ |
| | | Notices shopNotices = new Notices(noticeObjectType,Constants.TWO, |
| | | insuranceApply.getId(),solutions.getName(),solutions.getShopId(),Constants.NoticeType.THREE); |
| | | noticesMapper.insert(shopNotices); |
| | | } |
| | | }else if(insuranceApplyOptDTO.getOptType().equals(Constants.TWO)){ |
| | | insuranceApplyStatus = Constants.InsuranceApplyStatus.CLOSE; |
| | | if(insuranceApply.getStatus().equals(Constants.InsuranceApplyStatus.CLOSE.getKey())){ |