From b5b6a62ff37f5ecf8ae9beca11e62fa3abeebf3f Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Tue, 21 Oct 2025 13:32:55 +0800 Subject: [PATCH] =?UTF-8?q?change(portal):=20=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/portal/service/impl/HwWebServiceImpl.java | 1 + .../java/com/ruoyi/portal/service/impl/HwWebServiceImpl1.java | 1 + 2 files changed, 2 insertions(+) diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl.java index 96b507f..27c7a2b 100644 --- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl.java +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl.java @@ -74,6 +74,7 @@ public class HwWebServiceImpl implements IHwWebService List exists = hwWebMapper.selectHwWebList(codeWeb); if (!exists.isEmpty()) { Long[] webIds = exists.stream().map(HwWeb::getWebId).toArray(Long[]::new); + //逻辑删除旧纪录 hwWebMapper.deleteHwWebByWebIds(webIds); } // 插入新记录,避免复用旧主键 diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl1.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl1.java index c1f1dd9..538ac03 100644 --- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl1.java +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl1.java @@ -83,6 +83,7 @@ public class HwWebServiceImpl1 implements IHwWebService1 List exists = hwWebMapper1.selectHwWebList(codeWeb); if (!exists.isEmpty()) { Long[] webIds = exists.stream().map(HwWeb1::getWebId).toArray(Long[]::new); + //逻辑删除旧纪录 hwWebMapper1.deleteHwWebByWebIds(webIds); } // 插入新记录,避免复用旧主键