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