|
|
|
@ -214,10 +214,16 @@ public class IotMonitoringDataJob { |
|
|
|
if (machineWorkingStat.equals(1)) { |
|
|
|
// 工作中 |
|
|
|
Long workingDuration = reportTime - lastedDeviceState.getLastReportTime(); |
|
|
|
nowDeviceState.setTheDayJobCount(lastedDeviceState.getTheDayJobDuration() + workingDuration); |
|
|
|
|
|
|
|
//nowDeviceState.setTheDayJobCount(onData.getTheDayJobCount() + receivedEvent.getCurrJobCount()); |
|
|
|
nowDeviceState.setJobTotal(onData.getJobTotal() + receivedEvent.getCurrJobCount()); |
|
|
|
if(dataSource == 1) { |
|
|
|
// 树根 |
|
|
|
nowDeviceState.setTheDayJobCount(onData.getTheDayJobCount() + receivedEvent.getCurrJobCount()); |
|
|
|
nowDeviceState.setJobTotal(onData.getJobTotal() + receivedEvent.getCurrJobCount()); |
|
|
|
}else { |
|
|
|
// 机智云 |
|
|
|
Long workingJon = accJobCount - lastedDeviceState.getJobTotal(); |
|
|
|
nowDeviceState.setTheDayJobCount(lastedDeviceState.getTheDayJobCount() + workingJon); |
|
|
|
nowDeviceState.setJobTotal(lastedDeviceState.getJobTotal() + receivedEvent.getCurrJobCount()); |
|
|
|
} |
|
|
|
nowDeviceState.setCurrLocalDate(localDate); |
|
|
|
nowDeviceState.setLastBootTime(onData.getLastBootTime()); |
|
|
|
if (lastWaitJobData != null) { |
|
|
|
|