From 44eb64bef08ce231ac95d5ee482b046014dc8afa Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 08 九月 2025 11:29:26 +0800
Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV

---
 pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsSv.java |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsSv.java
index b45bb83..adea5a5 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsSv.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsSv.java
@@ -13,6 +13,8 @@
 import com.dy.pipIrrGlobal.voLargeScreen.VoBaseInfo;
 import com.dy.pipIrrGlobal.voLargeScreen.VoCurrentInfo;
 import com.dy.pipIrrGlobal.voLargeScreen.VoMonitorInfo;
+import com.dy.pipIrrGlobal.voMd.VoCropsSimple;
+import com.dy.pipIrrGlobal.voMd.VoEt0Simple;
 import com.dy.pipIrrGlobal.voSpecial.VoTopXClient;
 import com.dy.pipIrrGlobal.voSpecial.VoTopXIntake;
 import lombok.extern.slf4j.Slf4j;
@@ -78,14 +80,17 @@
         Integer[] result = this.queryMwOnAndOffLine() ;
         vo.cTotalCountOfOnLine = result[0] ;
         vo.cTotalCountOfOffLine = totalCountOfIntake - vo.cTotalCountOfOnLine;
+        vo.cTotalCountOfOffLine = vo.cTotalCountOfOffLine < 0 ? 0 : vo.cTotalCountOfOffLine ;
 
         vo.cTotalCountOfOpenValve = this.dao.totalCountOfOpenValve(dtAtXHourBefore) ;
         vo.cTotalCountOfCloseValve = this.dao.totalCountOfCloseValve(dtAtXHourBefore) ;
         vo.cTotalCountOfUnknownValve = totalCountOfIntake - vo.cTotalCountOfOpenValve - vo.cTotalCountOfCloseValve;
+        vo.cTotalCountOfUnknownValve = vo.cTotalCountOfUnknownValve < 0 ? 0 : vo.cTotalCountOfUnknownValve ;
 
         vo.cTotalCountOfAlarm = this.dao.totalCountOfAlarm(dtAtXHourBefore) ;
         vo.cTotalCountOfNoAlarm = this.dao.totalCountOfNoAlarm(dtAtXHourBefore) ;
         vo.cTotalCountOfUnknownAlarm = totalCountOfIntake - vo.cTotalCountOfAlarm - vo.cTotalCountOfNoAlarm;
+        vo.cTotalCountOfUnknownAlarm = vo.cTotalCountOfUnknownAlarm < 0 ? 0 : vo.cTotalCountOfUnknownAlarm ;
         return vo ;
     }
 
@@ -167,4 +172,22 @@
         return this.dao.topXIntakeAtCertainDay(idStart, idEnd, 5) ;
     }
 
+
+    /**
+     * 鎵�鏈変綔鐗�
+     * @return 瀹炰綋闆嗗悎
+     */
+    public List<VoCropsSimple> allCropts(){
+        return this.dao.allCropts() ;
+    }
+    /**
+     * 鎵�鏈変綔鐗�
+     * @return 瀹炰綋闆嗗悎
+     */
+    public List<VoEt0Simple> et0InWeek(Long cropId){
+        String startDate = DateTime.lastXDay_yyyy_MM_dd(8) ;//8澶╁墠
+        String endDate = DateTime.lastXDay_yyyy_MM_dd(1) ;//鏄ㄥぉ
+        return this.dao.et0InWeek(cropId, startDate, endDate) ;
+    }
+
 }

--
Gitblit v1.8.0