|
|
@ -81,7 +81,9 @@ public class DmsRealtimeStatusServiceImpl implements IDmsRealtimeStatusService {
|
|
|
|
public List<DmsRealtimeStatusHistory> history(DmsRealtimeStatusHistory history) {
|
|
|
|
public List<DmsRealtimeStatusHistory> history(DmsRealtimeStatusHistory history) {
|
|
|
|
List<DmsRealtimeStatusHistory> history1 = dmsRealtimeStatusMapper.history(history);
|
|
|
|
List<DmsRealtimeStatusHistory> history1 = dmsRealtimeStatusMapper.history(history);
|
|
|
|
Long count = dmsRealtimeStatusMapper.historyTimeCount(history);
|
|
|
|
Long count = dmsRealtimeStatusMapper.historyTimeCount(history);
|
|
|
|
history1.get(0).setTimeCount(count+"min");
|
|
|
|
int minutes = 1440;
|
|
|
|
|
|
|
|
long days = count/minutes;
|
|
|
|
|
|
|
|
history1.get(0).setTimeCount(days+" day");
|
|
|
|
return history1;
|
|
|
|
return history1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|