|
|
|
@ -83,6 +83,7 @@ public class HwWebServiceImpl1 implements IHwWebService1
|
|
|
|
List<HwWeb1> exists = hwWebMapper1.selectHwWebList(codeWeb);
|
|
|
|
List<HwWeb1> exists = hwWebMapper1.selectHwWebList(codeWeb);
|
|
|
|
if (!exists.isEmpty()) {
|
|
|
|
if (!exists.isEmpty()) {
|
|
|
|
Long[] webIds = exists.stream().map(HwWeb1::getWebId).toArray(Long[]::new);
|
|
|
|
Long[] webIds = exists.stream().map(HwWeb1::getWebId).toArray(Long[]::new);
|
|
|
|
|
|
|
|
//逻辑删除旧纪录
|
|
|
|
hwWebMapper1.deleteHwWebByWebIds(webIds);
|
|
|
|
hwWebMapper1.deleteHwWebByWebIds(webIds);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 插入新记录,避免复用旧主键
|
|
|
|
// 插入新记录,避免复用旧主键
|
|
|
|
|