From 0c6754b975a29eb207304a9714a0d0f6a7d9748c Mon Sep 17 00:00:00 2001 From: liyj <1003249715@qq.com> Date: Wed, 21 Aug 2024 20:37:15 +0800 Subject: [PATCH] 1、优化代码生成器 2、优化用户中心 3、新增client微服务调用controller --- dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtDeptWebController.java | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtDeptWebController.java b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtDeptWebController.java index 0eb6025..28b8a33 100644 --- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtDeptWebController.java +++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtDeptWebController.java @@ -19,11 +19,11 @@ 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 @@ -171,19 +171,15 @@ } /** - * 根据主键单个/批量删除 - * @url {ctx}/api/web/ctDept/deleteByIds - * @param ids 主键编号 + * 根据主键单个 + * @url {ctx}/api/web/ctDept/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