forked from gzzfw/backEnd/gz-dyh

wangwh
2024-09-22 55a6ee00c9bb89556a1ba53a3a763fa20230e030
dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseSuperviseService.java
@@ -3,8 +3,11 @@
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;
@@ -57,6 +60,9 @@
    @Autowired
    private SysClientImpl sysClient;
    @Autowired
    private CaseInfoService caseInfoService;
    /**
    * 条件更新对象
@@ -228,6 +234,18 @@
            }
            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);
@@ -283,7 +301,7 @@
        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)){