|
@@ -54,7 +54,7 @@ public class InitAddGroupAndItem implements CommandLineRunner {
|
|
|
weekendCriteria.andEqualTo(RemoteOpc::getCreatedFlag, YesNoEnum.YES.getValue()).andEqualTo(RemoteOpc::getPositionFlag, YesNoEnum.YES.getValue());
|
|
|
List<RemoteOpc> list = remoteOpcMapper.selectByExample(weekend);
|
|
|
List<RemoteOpc> remoteOpcList = OpcDAClient.addGroupAndItems(list);
|
|
|
- if(CollectionUtils.isEmpty(remoteOpcList)){
|
|
|
+ if(!CollectionUtils.isEmpty(remoteOpcList)){
|
|
|
remoteOpcMapper.updateBatch(remoteOpcList);
|
|
|
}
|
|
|
RedisUtils.del(RedisKeyConstants.redis_ok);
|