From 56008e5f28dd54025e11a6e988fbc09e66a3ebe8 Mon Sep 17 00:00:00 2001
From: liyj <1003249715@qq.com>
Date: Mon, 02 Sep 2024 12:20:24 +0800
Subject: [PATCH] 1、附件管理模块修改

---
 dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java |   18 ++++++++++++++++++
 1 files changed, 18 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 70efae2..a396678 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
@@ -347,4 +347,22 @@
             return ReturnFailUtils.getRepInfo( "查询失败", null);
         }
     }
+
+    /**
+     * 根据主键编号删除单位
+     * @url {ctx}/api/v1/ctUnit/removeByIds
+     * @param ids 主键编号
+     * @return Object
+     * @throws Exception
+     */
+    @GetMapping("/removeByIds")
+    public Object removeByIds(@RequestParam(value = "ids") String ids) {
+        try {
+            service.removeById(ids);
+            return ReturnSucUtils.getRepInfo();
+        } catch (Exception e) {
+            log.error("Controller接口[CtUnitController.removeByIds]请求异常:"+e, e);
+            return ReturnFailUtils.getRepInfo();
+        }
+    }
 }

--
Gitblit v1.8.0