From f7dd6c04223ea30a535e7f340d620435102aad8b Mon Sep 17 00:00:00 2001
From: zhouxiantao <1026371446@qq.com>
Date: Thu, 19 Sep 2024 17:32:43 +0800
Subject: [PATCH] 纠纷态势分析

---
 dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/web/CaseInfoUnfoldWebController.java |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 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..61c899e 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,6 +368,21 @@
     }
 
     /**
+     * 查询办理结果
+     * @url {ctx}/api/web/caseInfoUnfold/getTransactResult
+     * @param caseId 事项ID
+     * @return Object
+     */
+    @GetMapping("/getTransactResult")
+    public Object getTransactResult(@RequestParam(value = "caseId") String caseId) {
+        try {
+            return ReturnSucUtils.getRepInfo(service.getTransactResult(caseId));
+        } catch (Exception e) {
+            return ReturnFailUtils.getRepInfo();
+        }
+    }
+
+    /**
      * PC端-选择经办人
      * @url {ctx}/api/web/caseInfoUnfold/choosePrincipal?
      * @param caseId 纠纷编号
@@ -384,18 +399,18 @@
     }
 
     /**
-     * 查询办理结果
-     * @url {ctx}/api/web/caseInfoUnfold/getTransactResult
-     * @param caseId 事项ID
+     * PC端-删除经办人
+     * @url {ctx}/api/web/caseInfoUnfold/deletePrincipal?
+     * @param caseId 纠纷编号
      * @return Object
      */
-    @GetMapping("/getTransactResult")
-    public Object getTransactResult(@RequestParam(value = "caseId") String caseId) {
+    @GetMapping("/deletePrincipal")
+    public Object deletePrincipal(@RequestParam(value = "caseId") String caseId) {
         try {
-            return ReturnSucUtils.getRepInfo(service.getTransactResult(caseId));
+            service.deletePrincipal(caseId);
+            return ReturnSucUtils.getRepInfo();
         } catch (Exception e) {
-            return ReturnFailUtils.getRepInfo();
+            return ReturnFailUtils.getRepInfo(e.getMessage());
         }
     }
-
 }

--
Gitblit v1.8.0