|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.core.utils.Utils; | 
|---|
|  |  |  | import com.doumee.dao.business.MultifileMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.SettleClaimsLogMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.SettleClaimsMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.SCSupplementDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.join.MultifileJoinMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.join.SettleClaimsJoinMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.join.SettleClaimsLogJoinMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.model.*; | 
|---|
|  |  |  | 
|---|
|  |  |  | private SystemDictDataBiz systemDictDataBiz; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private MultifileMapper multifileMapper; | 
|---|
|  |  |  | private MultifileJoinMapper multifileJoinMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private SettleClaimsJoinMapper settleClaimsJoinMapper; | 
|---|
|  |  |  | 
|---|
|  |  |  | multifile.setObjId(settleClaims.getId()); | 
|---|
|  |  |  | multifile.setObjType(Constants.ONE); | 
|---|
|  |  |  | multifile.setSortnum(i+1); | 
|---|
|  |  |  | multifileMapper.insert(multifile); | 
|---|
|  |  |  | multifileJoinMapper.insert(multifile); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //记录日志 | 
|---|
|  |  |  | 
|---|
|  |  |  | settleClaimsLogMapper.insert(log); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<File> fileList = new ArrayList<>(); | 
|---|
|  |  |  | List<Multifile> multifileList = multifileMapper.selectList(new QueryWrapper<Multifile>().lambda() | 
|---|
|  |  |  | List<Multifile> multifileList = multifileJoinMapper.selectList(new QueryWrapper<Multifile>().lambda() | 
|---|
|  |  |  | .eq(Multifile::getObjId,id) | 
|---|
|  |  |  | .isNotNull(Multifile::getFileurl) | 
|---|
|  |  |  | .in(Multifile::getObjType, Arrays.asList(new Integer[]{ | 
|---|
|  |  |  | 
|---|
|  |  |  | if(settleClaims == null){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.DATA_EMPTY); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<Multifile> multifileList = multifileMapper.selectList(new QueryWrapper<Multifile>() | 
|---|
|  |  |  | .lambda().eq(Multifile::getObjId,id) | 
|---|
|  |  |  | List<Multifile> multifileList = multifileJoinMapper.selectJoinList(Multifile.class, | 
|---|
|  |  |  | new MPJLambdaWrapper<Multifile>() | 
|---|
|  |  |  | .selectAll(Multifile.class) | 
|---|
|  |  |  | .selectAs(SystemUser::getRealname,Multifile::getCreatorName) | 
|---|
|  |  |  | .leftJoin(SystemUser.class,SystemUser::getId,Multifile::getCreator) | 
|---|
|  |  |  | .eq(Multifile::getObjId,id) | 
|---|
|  |  |  | .eq(Multifile::getIsdeleted,Constants.ZERO) | 
|---|
|  |  |  | .orderByAsc(Multifile::getCreateDate) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Multifile baoxiandanFile = multifileMapper.selectOne(new QueryWrapper<Multifile>() | 
|---|
|  |  |  | Multifile baoxiandanFile = multifileJoinMapper.selectOne(new QueryWrapper<Multifile>() | 
|---|
|  |  |  | .lambda().eq(Multifile::getObjId,settleClaims.getInsuranceApplyId()) | 
|---|
|  |  |  | .eq(Multifile::getIsdeleted,Constants.ZERO) | 
|---|
|  |  |  | .eq(Multifile::getObjType,Constants.MultiFile.BD_DONE_PDF.getKey()) | 
|---|
|  |  |  | 
|---|
|  |  |  | multifile.setObjId(scSupplementDTO.getId()); | 
|---|
|  |  |  | multifile.setName(scSupplementDTO.getFileUrl().substring(scSupplementDTO.getFileUrl().lastIndexOf("/") + 1)); | 
|---|
|  |  |  | multifile.setType(scSupplementDTO.getFileType()); | 
|---|
|  |  |  | multifileMapper.insert(multifile); | 
|---|
|  |  |  | multifileJoinMapper.insert(multifile); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|