Browse Source

更新

master
1049970895@qniao.cn 3 years ago
parent
commit
119ce44eba
1 changed files with 1 additions and 1 deletions
  1. 2
      iot-machine-state-event-generator-job/src/main/java/com/qniao/iot/machine/event/generator/job/IotMachineEventGeneratorJob.java

2
iot-machine-state-event-generator-job/src/main/java/com/qniao/iot/machine/event/generator/job/IotMachineEventGeneratorJob.java

@ -319,7 +319,7 @@ public class IotMachineEventGeneratorJob {
newState.getMachineIotMac(), currJobCount);
stopMachineWorkingCommand.setTimestamp(event.getReportTime());
out.collect(stopMachineWorkingCommand);
} else if (oldState.getStatus() == 2 && newState.getStatus() == 1) {
} else if ((oldState.getStatus() == 2 || oldState.getStatus() == 1) && newState.getStatus() == 1) {
// 设备开始工作
StartMachineWorkingCommand startMachineWorkingCommand = new StartMachineWorkingCommand(newState.getMachineId(),
newState.getMachineIotMac(), currJobCount);

Loading…
Cancel
Save