| | |
| | | |
| | | } |
| | | @Override |
| | | public void dealWaitSignedData(){ |
| | | List<InsuranceApply> applyList = insuranceApplyMapper.selectList(new QueryWrapper<InsuranceApply>().lambda() |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WAIT_SIGNATURE) |
| | | .isNotNull(InsuranceApply::getSignApplyNo)); |
| | | if(applyList !=null && applyList.size()>0 ){ |
| | | for(InsuranceApply model : applyList){ |
| | | String link = signService.linkFile(model.getSignApplyNo()); |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //如果下载失败,清除合同,下次签章重新生成新合同 |
| | | return; |
| | | } |
| | | uploadSignedFileDo(model,fileUrl); |
| | | return; |
| | | } |
| | | } |
| | | List<ApplyChange> chagneList = applyChangeMapper.selectList(new QueryWrapper<ApplyChange>().lambda() |
| | | .eq(ApplyChange::getStatus,Constants.ApplyChangeStatus.UPLOAD) |
| | | .isNotNull(ApplyChange::getSignApplyNo)); |
| | | if(chagneList !=null && chagneList.size()>0 ){ |
| | | for(ApplyChange model : chagneList){ |
| | | String link = signService.linkFile(model.getSignApplyNo()); |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //如果下载失败,清除合同,下次签章重新生成新合同 |
| | | return; |
| | | } |
| | | uploadChangeSignedFileDo(model,fileUrl); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | @Override |
| | | public void dealSignResult(NotifyDataReq data){ |
| | | if(data.getApplyNo() == null ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |