diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsRealtimeStatusServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsRealtimeStatusServiceImpl.java index 3fe17db5..5ef4667b 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsRealtimeStatusServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsRealtimeStatusServiceImpl.java @@ -81,7 +81,9 @@ public class DmsRealtimeStatusServiceImpl implements IDmsRealtimeStatusService { public List history(DmsRealtimeStatusHistory history) { List 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; }