Browse Source

"生产指标同步"

yangjunfeng 1 month ago
parent
commit
8095c209b3

+ 1 - 1
ylsw-scada/src/main/java/com/tofly/scada/service/impl/ScadaServiceImpl.java

@@ -2137,7 +2137,7 @@ public class ScadaServiceImpl extends ServiceImpl<ScadaMapper, Scada> implements
                     new QueryWrapper<DeviceArchiveManage>().lambda().eq(DeviceArchiveManage::getCode, device.getCode())));
         }
         if (CollUtil.isNotEmpty(allocationList)) {
-            List<String> codeFilterList = allocationList.stream().map(Allocation::getVariableCode).collect(Collectors.toList());
+            List<String> codeFilterList = allocationMapper.selectList(new QueryWrapper<>()).stream().map(Allocation::getVariableCode).collect(Collectors.toList());
             allocationList.forEach(info -> {
                 if (codeFilterList.contains(info.getVariableCode())) {
                     allocationMapper.update(info, new QueryWrapper<Allocation>().lambda().eq(Allocation::getVariableCode, info.getVariableCode()));