From 1ffe4356a2195d1404b740040a7e9e63aac40255 Mon Sep 17 00:00:00 2001 From: liyj <1003249715@qq.com> Date: Wed, 28 Aug 2024 16:55:32 +0800 Subject: [PATCH] 1、主键生成策略优化2 --- dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 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 ca19698..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 @@ -203,7 +203,7 @@ if (StringUtils.isNotBlank(dispStatus)){ terms.put("dispStatus", dispStatus); } - // 删除状态,0:已删除,1:未删除 + // 删除状态,0:未删除,1:已删除 String deleteStatus = request.getParameter("deleteStatus"); if (StringUtils.isNotBlank(deleteStatus)){ terms.put("deleteStatus", deleteStatus); @@ -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