From a15a8cfd7b01ce4bba6fe9fd876f6704ca23a12d Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 07 一月 2025 16:40:32 +0800
Subject: [PATCH] 1、取水口用水日统计表中增加金额、次数字段; 2、优化或重写“累计流量超过指定值的取水口”、“累计流量低于指定值的取水口”、“指定时间段内用水量超过指定值的取水口”、“指定时间段内消费金额超过指定值的取水口”几个统计查询; 3、改“指定时间段内用水时长超过指定值的取水口”为“指定时间段内用水次数超过指定值的取水口”

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoTmp/ChangeMapper.java |   64 ++++++++++++++++++++++++++++++++
 1 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoTmp/ChangeMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoTmp/ChangeMapper.java
index 8c7af33..64d3e8c 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoTmp/ChangeMapper.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoTmp/ChangeMapper.java
@@ -2,8 +2,11 @@
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountDay;
+import com.dy.pipIrrGlobal.pojoRm.RmLossDay;
 import com.dy.pipIrrGlobal.pojoSt.StIntakeAmountMonth;
 import com.dy.pipIrrGlobal.pojoSt.StIntakeAmountYear;
+import com.dy.pipIrrGlobal.pojoSt.StLossMonth;
+import com.dy.pipIrrGlobal.pojoSt.StLossYear;
 import com.dy.pipIrrGlobal.voSt.VoIntake;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
@@ -85,4 +88,65 @@
     int saveOneIntakeAmountYear(StIntakeAmountYear pojo);
 
 
+    ////////////////////////////////////////
+    //
+    //婕忔崯鐩稿叧
+    //
+    ////////////////////////////////////////
+
+    /**
+     * 鏌ヨ涓�涓彇姘村彛鐨勬棩婕忔崯閲忕粺璁¤褰�
+     *
+     * @return 瀹炰綋闆嗗悎
+     */
+    List<RmLossDay> selectOneIntakeAllLossDay(@Param("intakeId")Long intakeId);
+
+    /**
+     * 鏇存柊涓�涓彇姘村彛鐨勬棩婕忔崯閲忕粺璁�
+     *
+     * @return 褰卞搷瀹炰綋鏁�
+     */
+    int updateOneIntakeLossDay(@Param("id")Long id, @Param("loss")Double loss);
+
+
+
+    /**
+     * 鍒犻櫎鎵�鏈夊彇姘村彛鐨勬湀婕忔崯閲忕粺璁�
+     * @return 褰卞搷瀹炰綋鏁�
+     */
+    int deleteAllIntakeLossMonth();
+
+
+    /**
+     * 缁熻鎵�鏈夊彇姘村彛鐨勬湀婕忔崯閲�
+     * @return 瀹炰綋闆嗗悎
+     */
+    List<StLossMonth> statisticAllIntakeLossMonthFromLossDay(@Param("startDt")Date startDt,
+                                                             @Param("endDt")Date endDt);
+    /**
+     * 淇濆瓨鍙栨按鍙g殑鏈堟紡鎹熼噺缁熻
+     * @return 褰卞搷瀹炰綋鏁�
+     */
+    int saveOneIntakeLossMonth(StLossMonth pojo);
+
+
+    /**
+     * 鍒犻櫎鎵�鏈夊彇姘村彛鐨勫勾婕忔崯閲忕粺璁�
+     * @return 褰卞搷瀹炰綋鏁�
+     */
+    int deleteAllIntakeLossYear();
+
+
+    /**
+     * 缁熻鎵�鏈夊彇姘村彛鐨勫勾婕忔崯閲�
+     * @return 瀹炰綋闆嗗悎
+     */
+    List<StLossYear> statisticAllIntakeLossYearFromLossDay(@Param("startDt")Date startDt,
+                                                           @Param("endDt")Date endDt);
+    /**
+     * 淇濆瓨鍙栨按鍙g殑鏈堟紡鎹熼噺缁熻
+     * @return 褰卞搷瀹炰綋鏁�
+     */
+    int saveOneIntakeLossYear(StLossYear pojo);
+
 }
\ No newline at end of file

--
Gitblit v1.8.0