停机历史详情修改

master
maxw@mesnac.com 2 months ago
parent 4b0826e561
commit b0c3cb4a95

@ -81,7 +81,9 @@ public class DmsRealtimeStatusServiceImpl implements IDmsRealtimeStatusService {
public List<DmsRealtimeStatusHistory> history(DmsRealtimeStatusHistory history) {
List<DmsRealtimeStatusHistory> history1 = dmsRealtimeStatusMapper.history(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;
}

Loading…
Cancel
Save