From 47488a7bf69c5cdae18e80a616ec0a43e890765d Mon Sep 17 00:00:00 2001
From: zhouxiantao <1026371446@qq.com>
Date: Sat, 14 Sep 2024 17:32:20 +0800
Subject: [PATCH] 小程序协议

---
 dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseAssistApplyService.java |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseAssistApplyService.java b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseAssistApplyService.java
index 3649d2a..d44cb0e 100644
--- a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseAssistApplyService.java
+++ b/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;
     }
 
     /**

--
Gitblit v1.8.0