|
@@ -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()));
|