Browse Source

fix:修复同步状态时间隔时间空指针问题

master
白凤吉 5 days ago
parent
commit
a10052c37a
  1. 2
      src/main/java/com/iflytop/handacid/app/service/DeviceService.java

2
src/main/java/com/iflytop/handacid/app/service/DeviceService.java

@ -32,7 +32,7 @@ public class DeviceService {
} }
if(syncOperationsDTO.getDelay() != null){ if(syncOperationsDTO.getDelay() != null){
deviceState.setDelay(syncOperationsDTO.getDelay()); deviceState.setDelay(syncOperationsDTO.getDelay());
systemConfigService.updateValueByKey(SystemConfigKey.SOLUTION_ADD_DELAY, syncOperationsDTO.getMode().toString());
systemConfigService.updateValueByKey(SystemConfigKey.SOLUTION_ADD_DELAY, syncOperationsDTO.getDelay().toString());
} }
if(syncOperationsDTO.getChannels() != null){ if(syncOperationsDTO.getChannels() != null){
for (SyncOperationsChannel syncOperationsChannel : syncOperationsDTO.getChannels()) { for (SyncOperationsChannel syncOperationsChannel : syncOperationsDTO.getChannels()) {

Loading…
Cancel
Save