From 9d27d3439ea42d34a9cf9602f1a2c0b5e9bb75a2 Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Mon, 23 Sep 2024 20:29:43 +0800
Subject: [PATCH] 全部签收接口优化、首页-统计数量添加返回字段、首页督办修复、查询案件督办信息接口添加字段

---
 dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/web/CaseInfoUnfoldWebController.java |   63 +++++++++++++++++++++++--------
 1 files changed, 47 insertions(+), 16 deletions(-)

diff --git a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/web/CaseInfoUnfoldWebController.java b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/web/CaseInfoUnfoldWebController.java
index acd8178..1724ae4 100644
--- a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/web/CaseInfoUnfoldWebController.java
+++ b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/web/CaseInfoUnfoldWebController.java
@@ -368,22 +368,6 @@
     }
 
     /**
-     * PC端-选择经办人
-     * @url {ctx}/api/web/caseInfoUnfold/choosePrincipal?
-     * @param caseId 纠纷编号
-     * @return Object
-     */
-    @GetMapping("/choosePrincipal")
-    public Object choosePrincipal(@RequestParam(value = "caseId") String caseId, @RequestParam(value = "userId") String userId) {
-        try {
-            service.choosePrincipal(caseId, userId);
-            return ReturnSucUtils.getRepInfo();
-        } catch (Exception e) {
-            return ReturnFailUtils.getRepInfo(e.getMessage());
-        }
-    }
-
-    /**
      * 查询办理结果
      * @url {ctx}/api/web/caseInfoUnfold/getTransactResult
      * @param caseId 事项ID
@@ -398,4 +382,51 @@
         }
     }
 
+    /**
+     * PC端-选择经办人
+     * @url {ctx}/api/web/caseInfoUnfold/choosePrincipal?
+     * @param caseId 纠纷编号
+     * @return Object
+     */
+    @GetMapping("/choosePrincipal")
+    public Object choosePrincipal(@RequestParam(value = "caseId") String caseId, @RequestParam(value = "caseTaskId") String caseTaskId,
+                                  @RequestParam(value = "userId") String userId) {
+        try {
+            service.choosePrincipal(caseId, caseTaskId, userId);
+            return ReturnSucUtils.getRepInfo();
+        } catch (Exception e) {
+            return ReturnFailUtils.getRepInfo(e.getMessage());
+        }
+    }
+
+    /**
+     * PC端-删除经办人
+     * @url {ctx}/api/web/caseInfoUnfold/deletePrincipal?
+     * @param caseId 纠纷编号
+     * @return Object
+     */
+    @GetMapping("/deletePrincipal")
+    public Object deletePrincipal(@RequestParam(value = "caseId") String caseId) {
+        try {
+            service.deletePrincipal(caseId);
+            return ReturnSucUtils.getRepInfo();
+        } catch (Exception e) {
+            return ReturnFailUtils.getRepInfo(e.getMessage());
+        }
+    }
+
+    /**
+     * 联合处置申请-查询组织
+     * @url {ctx}/api/web/caseInfoUnfold/superviceUnitChoose
+     * @param caseId 事项ID
+     * @return Object
+     */
+    @GetMapping("/superviceUnitChoose")
+    public Object superviceUnitChoose(@RequestParam(value = "caseId") String caseId) {
+        try {
+            return ReturnSucUtils.getRepInfo(service.superviceUnitChoose(caseId));
+        } catch (Exception e) {
+            return ReturnFailUtils.getRepInfo();
+        }
+    }
 }

--
Gitblit v1.8.0