From 70a8bd2c65bb24af82c5bc8c88b4352622aec1d5 Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Wed, 16 Oct 2024 16:49:07 +0800
Subject: [PATCH] 网格登录对接

---
 dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUsepostWebController.java |   26 ++++++++++----------------
 1 files changed, 10 insertions(+), 16 deletions(-)

diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUsepostWebController.java b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUsepostWebController.java
index e78c010..b76c968 100644
--- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUsepostWebController.java
+++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUsepostWebController.java
@@ -1,4 +1,4 @@
-package cn.huge.module.ctuser.controller;
+package cn.huge.module.ctuser.controller.web;
 
 import cn.huge.base.common.utils.ReturnFailUtils;
 import cn.huge.base.common.utils.ReturnSucUtils;
@@ -15,15 +15,13 @@
 
 import javax.servlet.http.HttpServletRequest;
 import java.util.Map;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
 
 /**
- * @title: 客户用户配岗表接口api
- * @description: 客户用户配岗表接口api
+ * @title: 客户用户配岗表接口api-web端
+ * @description: 客户用户配岗表接口api-web端
  * @company: hugeinfo
  * @author: liyj
- * @time: 2024-08-17 15:30:57
+ * @time: 2024-08-19 20:04:19
  * @version: 1.0.0
  */
 @Slf4j
@@ -151,19 +149,15 @@
     }
 
     /**
-    * 根据主键单个/批量删除
-    * @url {ctx}/api/web/ctUsepost/deleteByIds
-    * @param ids 主键编号
+    * 根据主键单个
+    * @url {ctx}/api/web/ctUsepost/deleteById
+    * @param id 主键编号
     * @return Object
     */
-    @GetMapping("/deleteByIds")
-    public Object deleteByIds(@RequestParam(value = "ids") String ids) {
+    @GetMapping("/deleteById")
+    public Object deleteById(@RequestParam(value = "id") String id) {
         try {
-            if (ids.indexOf(",") != -1) {
-                service.removeByIds(Stream.of(ids.split(",")).collect(Collectors.toList()));
-            }else{
-                service.removeById(ids);
-            }
+            service.removeById(id);
             return ReturnSucUtils.getRepInfo();
         } catch (Exception e) {
             return ReturnFailUtils.getRepInfo();

--
Gitblit v1.8.0