From bab8da36a28dbceddc4b88b3e729acc38b34bb89 Mon Sep 17 00:00:00 2001 From: zpl Date: Tue, 12 Oct 2021 10:48:22 +0800 Subject: [PATCH] =?UTF-8?q?dnc=E8=AE=BE=E5=A4=87=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8F=AA=E8=AE=B0=E5=BD=95=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equip/service/EdcDataResourceService.java | 1 + .../impl/EdcDataResourceServiceImpl.java | 25 +++++++++++++------ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/EdcDataResourceService.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/EdcDataResourceService.java index d036510b..3a834743 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/EdcDataResourceService.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/EdcDataResourceService.java @@ -26,6 +26,7 @@ public interface EdcDataResourceService extends IService { List selectList(EdcDataResource edcDataResource); + void removeAll(EdcDataResource edcDataResource); /** * 保存设备参数数据-DNC接口 * @param text diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/EdcDataResourceServiceImpl.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/EdcDataResourceServiceImpl.java index 217c04ee..8ffde942 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/EdcDataResourceServiceImpl.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/EdcDataResourceServiceImpl.java @@ -42,6 +42,8 @@ public class EdcDataResourceServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>(); + queryWrapper.setEntity(edcDataResource); + super.remove(queryWrapper); + } + @Override public void saveResourceParamByMq(String text) { // json解析,获取json中数据 @@ -68,9 +77,6 @@ public class EdcDataResourceServiceImpl extends ServiceImpl