From 7c3418c45926b5288b22044d60dbb12fa2c982d0 Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Fri, 27 Sep 2024 18:02:40 +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