From d5df38efec7c44a47c8d523d16b0b62ccc148025 Mon Sep 17 00:00:00 2001
From: huangh <hshgjzd5@163.com>
Date: Tue, 17 Jun 2025 16:35:26 +0800
Subject: [PATCH] feat:结案申请按照案件id查询添加限制,只查询最新的记录

---
 dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java
index 0e8f327..19fbd24 100644
--- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java
+++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java
@@ -389,6 +389,16 @@
         }
     }
 
+    @GetMapping("/unitChoose4Union")
+    public Object unitChoose4Union(@CurrentUser String userId) {
+        try {
+            List<SelectTermDTO> unitSelectTerms = service.unitChoose4Union(userId);
+            return ReturnSucUtils.getRepInfo(unitSelectTerms);
+        } catch (Exception e) {
+            return ReturnFailUtils.getRepInfo(e.getMessage());
+        }
+    }
+
     /**
      * 联合处置申请-选择组织
      * @url {ctx}/api/web/ctUnit/assistApplyUnitChoose
@@ -469,4 +479,19 @@
             return ReturnFailUtils.getRepInfo( "查询失败", null);
         }
     }
+
+    /**
+     * 联合处置申请获取所有组织树形结构
+     * @url {ctx}/api/web/ctUnit/unitTree4Union
+     * @return Object
+     */
+    @GetMapping("/unitTree4Union")
+    public Object unitTree4Union(@CurrentUser String userId) {
+        try {
+            return ReturnSucUtils.getRepInfo( "查询成功", service.unitTree4Union(userId));
+        } catch (Exception e) {
+            log.error("Controller接口[CtUnitWebController.unitTree]请求异常:"+e, e);
+            return ReturnFailUtils.getRepInfo( "查询失败", null);
+        }
+    }
 }

--
Gitblit v1.8.0