|
|
@ -260,6 +260,7 @@ public class IotMonitoringDataJob { |
|
|
// 待机或开机 |
|
|
// 待机或开机 |
|
|
nowDeviceState = lastedDeviceState; |
|
|
nowDeviceState = lastedDeviceState; |
|
|
} |
|
|
} |
|
|
|
|
|
// 设置开机时长,待机也要进行累加,所以放这里 |
|
|
if (dataSource == 1) { |
|
|
if (dataSource == 1) { |
|
|
nowDeviceState.setTheDayDuration(lastedDeviceState.getTheDayDuration() + workingDuration); |
|
|
nowDeviceState.setTheDayDuration(lastedDeviceState.getTheDayDuration() + workingDuration); |
|
|
}else { |
|
|
}else { |
|
|
|