From e99f1cd836475a059ed6fdcbd4235416ba108dd1 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 03 十二月 2021 17:16:00 +0800
Subject: [PATCH] 1. 新增用电量日分析功能

---
 src/main/kotlin/com/flightfeather/uav/lightshare/bean/ElectricDailyInfo.kt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/lightshare/bean/ElectricDailyInfo.kt b/src/main/kotlin/com/flightfeather/uav/lightshare/bean/ElectricDailyInfo.kt
index 91977a5..57d8442 100644
--- a/src/main/kotlin/com/flightfeather/uav/lightshare/bean/ElectricDailyInfo.kt
+++ b/src/main/kotlin/com/flightfeather/uav/lightshare/bean/ElectricDailyInfo.kt
@@ -125,15 +125,16 @@
         // TODO: 2021/12/1 1. 璁惧姝e紡杩愯鏃堕棿宸� =銆嬪紑鍚槸鍚﹀悎瑙�
         if (pfRTime != null && plRTime != null) {
             rTimeDiff = ((pfRTime!!.time - plRTime!!.time) / 1000 / 60).toInt()
-            sResult = rTimeDiff > 0
+            sResult = rTimeDiff < 0
         }
         // TODO: 2021/12/1 2锛岃澶囧叧闂椂闂村樊 =銆嬪叧闂槸鍚﹀悎瑙�
         if (pfETime != null && plETime != null) {
             eTimeDiff = ((pfETime!!.time - plETime!!.time) / 1000 / 60).toInt()
+            eResult = eTimeDiff > 0
         }
         // TODO: 2021/12/1 3. 杩愯鏃堕暱宸� =銆嬭繍琛岃繃绋嬫槸鍚﹀悎瑙�
         runningTimeDiff = pfRunTime - plRunTime
-        // TODO: 2021/12/1 4. 缁煎悎鍒ゆ柇缁撴灉
+        rResult = runningTimeDiff > 0
 
         // TODO: 2021/12/1 5. 澶氭棩鎽樿缁熻锛岃繍琛屽ぉ鏁般�佸悎瑙勫ぉ鏁扮瓑
     }

--
Gitblit v1.9.3