forked from gzzfw/backEnd/gz-dyh

liyj
2024-09-14 1fa35230344cbc98d02f612635aee38698d40df3
dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseAssistApplyService.java
@@ -189,7 +189,7 @@
    }
    /**
     * 审核联合处置申请
     * 审核联合处置审核
     * @param caseAssistApply 实体对象
     */
    public void reviewCaseAssistApply(CaseAssistApply caseAssistApply, String userId){
@@ -260,18 +260,23 @@
     * @return long
     */
    public CaseAssistApply caseAssistApplyByCaseId(String caseId){
        QueryWrapper<CaseAssistApply> caseAssistApplyQueryWrapper = new QueryWrapper<>();
        caseAssistApplyQueryWrapper.eq("case_id", caseId).eq("apply_status", 0)
                .orderByDesc("create_time");
        CaseAssistApply caseAssistApply = mapper.selectOne(caseAssistApplyQueryWrapper);
        Map<String, Object> terms = new HashMap<>();
        terms.put("mainId", caseId);
        terms.put("ownerIds", "'" + caseAssistApply.getId() + "'");
        List<FileIdInfoBaseDTO> fileIdInfoBaseDTOList = sysClient.listIdInfoByOwnerIdList(terms);
        if(CollectionUtils.isNotEmpty(fileIdInfoBaseDTOList)){
            caseAssistApply.setFileInfoBaseDTOList(fileIdInfoBaseDTOList.get(0).getFileList());
        try {
            QueryWrapper<CaseAssistApply> caseAssistApplyQueryWrapper = new QueryWrapper<>();
            caseAssistApplyQueryWrapper.eq("case_id", caseId).eq("apply_status", 0)
                    .orderByDesc("create_time");
            CaseAssistApply caseAssistApply = mapper.selectOne(caseAssistApplyQueryWrapper);
            Map<String, Object> terms = new HashMap<>();
            terms.put("mainId", caseId);
            terms.put("ownerIds", "'" + caseAssistApply.getId() + "'");
            List<FileIdInfoBaseDTO> fileIdInfoBaseDTOList = sysClient.listIdInfoByOwnerIdList(terms);
            if (CollectionUtils.isNotEmpty(fileIdInfoBaseDTOList)) {
                caseAssistApply.setFileInfoBaseDTOList(fileIdInfoBaseDTOList.get(0).getFileList());
            }
            return caseAssistApply;
        }catch(Exception e ){
            log.error("[CaseAssistApplyService.caseAssistApplyByCaseId]调用失败,异常信息:"+e, e);
            throw new ServiceException("CaseAssistApplyService.caseAssistApplyByCaseId", e);
        }
        return caseAssistApply;
    }
    /**