| | |
| | | if(multifiles!=null && multifiles.size()>0){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode() |
| | | +systemDictDataBiz.queryByCode(Constants.OSS,Constants.APPLY_FILE).getCode(); |
| | | for(InsuranceApply model : list){ |
| | | for(Multifile f : multifiles) { |
| | | if (StringUtils.isBlank(f.getFileurl())) { |
| | | continue; |
| | | } |
| | | f.setFileurlFull(path+f.getFileurl()); |
| | | if(Constants.equalsInteger(f.getObjId(), model.getId()) ){ |
| | | if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.BD_APPLY_PDF.getKey())) { |
| | | //签署前的投保单 |
| | | model.setToubaodanFile(f); |
| | | } else if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.BD_SIGNED_PDF.getKey())) { |
| | | //签署后的投保单 |
| | | model.setToubaodanSignedFile(f); |
| | | } else if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.BD_DONE_PDF.getKey())) { |
| | | //最終保险单 |
| | | model.setBaoxiandanFile(f); |
| | | } else if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.MEMBER_LIST_LATTER.getKey())) { |
| | | //申请单 |
| | | model.setShenqingdanFile(f); |
| | | } else if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.WTB_CONFIRMATION_LATTER.getKey())) { |
| | | //签署后确认书 |
| | | model.setFanganFile(f); |
| | | } |
| | | for(InsuranceApply model : list){ |
| | | for(Multifile f : multifiles) { |
| | | if (StringUtils.isBlank(f.getFileurl())) { |
| | | continue; |
| | | } |
| | | f.setFileurlFull(path+f.getFileurl()); |
| | | if(Constants.equalsInteger(f.getObjId(), model.getId()) ){ |
| | | if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.BD_APPLY_PDF.getKey())) { |
| | | //签署前的投保单 |
| | | model.setToubaodanFile(f); |
| | | } else if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.BD_SIGNED_PDF.getKey())) { |
| | | //签署后的投保单 |
| | | model.setToubaodanSignedFile(f); |
| | | } else if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.BD_DONE_PDF.getKey())) { |
| | | //最終保险单 |
| | | model.setBaoxiandanFile(f); |
| | | } else if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.MEMBER_LIST_LATTER.getKey())) { |
| | | //申请单 |
| | | model.setShenqingdanFile(f); |
| | | } else if (Constants.equalsInteger(f.getObjType(), Constants.MultiFile.WTB_CONFIRMATION_LATTER.getKey())) { |
| | | //签署后确认书 |
| | | model.setFanganFile(f); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |