From b0c3cb4a95fc2cd20ea96e1e30d7185aa0994b29 Mon Sep 17 00:00:00 2001 From: "maxw@mesnac.com" Date: Wed, 4 Dec 2024 10:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E6=9C=BA=E5=8E=86=E5=8F=B2=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hw/dms/service/impl/DmsRealtimeStatusServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }