|  |  |  | 
|---|
|  |  |  | import com.doumee.dao.business.model.*; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.ApplyPowerVO; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.CountCyclePriceVO; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.dataBoard.InsuranceDataVO; | 
|---|
|  |  |  | import com.doumee.dao.system.SystemUserMapper; | 
|---|
|  |  |  | import com.doumee.dao.system.model.SystemUser; | 
|---|
|  |  |  | import com.doumee.service.business.InsuranceApplyService; | 
|---|
|  |  |  | 
|---|
|  |  |  | private SmsEmailService smsEmailService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ApplyChangeJoinMapper applyChangeMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private SystemDictDataBiz systemDictDataBiz; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | 
|---|
|  |  |  | private CompanyMapper companyMapper; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private MemberInsuranceJoinMapper memberInsuranceJoinMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ApplyDetailMapper applyDetailMapper; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ApplyDetailJoinMapper applyDetailJoinMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ApplyLogMapper applyLogMapper; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private SignService signService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private MultifileMapper multifileMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ApplyLogJoinMapper applyLogJoinMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private SolutionsMapper solutionsMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private MemberMapper memberMapper; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | 
|---|
|  |  |  | private DuWorkTypeJoinMapper duWorkTypeJoinMapper; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private SolutionWorktypeJoinMapper solutionWorktypeJoinMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private NoticesMapper noticesMapper; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | 
|---|
|  |  |  | private SystemUserMapper systemUserMapper; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private CompanyDepartmentMapper companyDepartmentMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private InsuranceMapper insuranceMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | update.setStatus(Constants.InsuranceApplyStatus.WTB_RETURN.getKey()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | update.setEditDate(new Date()); | 
|---|
|  |  |  | update.setEditor(user.getId()); | 
|---|
|  |  |  | update.setCheckDate(update.getEditDate()); | 
|---|
|  |  |  | 
|---|
|  |  |  | update.setCheckUserId(user.getId()); | 
|---|
|  |  |  | update.setId(model.getId()); | 
|---|
|  |  |  | insuranceApplyMapper.updateById(update); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //存储待办信息 | 
|---|
|  |  |  | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.INSURANCE_APPLY; | 
|---|
|  |  |  | //删除其他待办 | 
|---|
|  |  |  | 
|---|
|  |  |  | Notices notices = new Notices(noticeObjectType,Constants.ONE,insuranceApply.getId(),solutions.getName(), | 
|---|
|  |  |  | model.getCompanyId(), Constants.NoticeType.FOUR); | 
|---|
|  |  |  | noticesMapper.insert(notices); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.PLATFORM_RETURN; | 
|---|
|  |  |  | String info =applyLogType.getInfo(); | 
|---|
|  |  |  | info = info.replace("${param}", update.getCheckInfo()); | 
|---|
|  |  |  | 
|---|
|  |  |  | ||StringUtils.isBlank( insuranceApply.getBaoxiandanFile() .getName())){ | 
|---|
|  |  |  | throw  new BusinessException(ResponseStatus.BAD_REQUEST); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | InsuranceApply model = insuranceApplyMapper.selectById(insuranceApply.getId()); | 
|---|
|  |  |  | if(model == null ||!Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){ | 
|---|
|  |  |  | throw  new BusinessException(ResponseStatus.DATA_EMPTY); | 
|---|
|  |  |  | 
|---|
|  |  |  | ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return applyPowerVO; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|