From faf2ef5db9dec1d06bc1ecfef3af1a2522c03d65 Mon Sep 17 00:00:00 2001 From: liyj <1003249715@qq.com> Date: Mon, 19 Aug 2024 20:16:49 +0800 Subject: [PATCH] 1、修改redis配置 2、修改代码生成器 3、修改base依赖 --- dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java index 730926e..af5df0f 100644 --- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java +++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java @@ -23,7 +23,7 @@ * @description: 客户用户表接口api * @company: hugeinfo * @author: liyj - * @time: 2024-08-17 15:30:57 + * @time: 2024-08-19 20:04:19 * @version: 1.0.0 */ @Slf4j @@ -291,19 +291,15 @@ } /** - * 根据主键单个/批量删除 - * @url {ctx}/api/web/ctUser/deleteByIds + * 根据主键单个 + * @url {ctx}/api/web/ctUser/deleteById * @param ids 主键编号 * @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