| | |
| | | import cn.huge.base.common.exception.ServiceException; |
| | | import cn.huge.base.common.utils.DateUtils; |
| | | import cn.huge.base.common.utils.IdUtils; |
| | | import cn.huge.base.common.utils.ObjectUtils; |
| | | import cn.huge.module.cases.domain.dto.FileRelateDTO; |
| | | import cn.huge.module.cases.domain.dto.QuiltUnitDTO; |
| | | import cn.huge.module.cases.domain.po.CaseInfo; |
| | | import cn.huge.module.cases.domain.po.CaseInfoUnfold; |
| | | import cn.huge.module.client.api.impl.CustClientImpl; |
| | | import cn.huge.module.client.api.impl.SysClientImpl; |
| | | import cn.huge.module.client.api.impl.UtilsClientImpl; |
| | |
| | | |
| | | @Autowired |
| | | private SysClientImpl sysClient; |
| | | |
| | | @Autowired |
| | | private CaseInfoService caseInfoService; |
| | | |
| | | /** |
| | | * 条件更新对象 |
| | |
| | | } |
| | | long countSuperviseList = mapper.countCaseSupervise(terms); |
| | | List<CaseSupervise> caseSuperviseList = mapper.pageCaseSupervise(terms, page); |
| | | CaseInfo caseInfo = new CaseInfo(); |
| | | if(1 != type && CollectionUtils.isNotEmpty(caseSuperviseList)){ |
| | | QueryWrapper<CaseInfo>caseInfoQueryWrapper = new QueryWrapper<>(); |
| | | caseInfoQueryWrapper.eq("id", caseId); |
| | | caseInfo = caseInfoService.getOne(caseInfoQueryWrapper); |
| | | for(CaseSupervise caseSupervise: caseSuperviseList){ |
| | | if(ObjectUtils.isNotEmpty(caseInfo)){ |
| | | caseSupervise.setCaseGrade(caseInfo.getCaseLevel()); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | Map<String, Object>map = new HashMap<>(); |
| | | map.put("mainId", caseId); |
| | |
| | | try { |
| | | CaseSupervise caseSupervise = mapper.selectById(id); |
| | | Map<String, Object> terms = new HashMap<>(); |
| | | terms.put("mainId", "'" + caseSupervise.getCaseId() + "'"); |
| | | terms.put("mainId", caseSupervise.getCaseId()); |
| | | terms.put("ownerIds", "'" + id + "'"); |
| | | List<FileIdTypeInfoBaseDTO> fileIdTypeInfoBaseDTOList = sysClient.listIdTypeInfoByOwnerIdList(terms); |
| | | if(CollectionUtils.isNotEmpty(fileIdTypeInfoBaseDTOList)){ |