From 8848e08e1498189e13d58bb5b33947cf81da6172 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Mon, 23 Sep 2024 14:12:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B6=89=E5=AF=86=E5=9C=BA=E6=89=80?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/manager/TdPlaceManager.java | 4 +++- .../src/main/resources/mapper/system/TdPlaceMapper.xml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/TdPlaceManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/TdPlaceManager.java index d2d90a2..d2588b5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/TdPlaceManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/TdPlaceManager.java @@ -56,7 +56,9 @@ public class TdPlaceManager { public boolean deletedPlaceByids(String ids) { List list = Arrays.asList(Convert.toStrArray(ids)); - return placeService.removeByIds(list); + return placeService.lambdaUpdate() + .in(TdPlace::getId,list) + .set(TdPlace::getState,"0").update(); } public List selectList() { diff --git a/ruoyi-system/src/main/resources/mapper/system/TdPlaceMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TdPlaceMapper.xml index fda5b5c..4860e59 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TdPlaceMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TdPlaceMapper.xml @@ -31,6 +31,7 @@ AND place_name LIKE concat('%',#{placeName},'%') + AND state !='0' ORDER BY create_time DESC