From 24bbe7a75c85816524c097caacb141cc6846acb9 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 11 十二月 2024 15:21:21 +0800
Subject: [PATCH] 增加删除取水口水量月统计年统计重复数据功能,增加删除农户用水量月统计年统计重复数据功能,

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/Temp4DeleteMapper.xml |  106 ++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 93 insertions(+), 13 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/Temp4DeleteMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/Temp4DeleteMapper.xml
index 63cfe37..60f1e56 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/Temp4DeleteMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/Temp4DeleteMapper.xml
@@ -1,18 +1,98 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.dy.pipIrrGlobal.daoTmp.DeleteMapper">
-  <select id="selectAllStLossMonth" resultType="com.dy.pipIrrGlobal.voTmp.VoStLossMonth">
-    select id as id,
-            intake_id as intakeId ,
-            year as year,
-            month as month,
-            amount as amount
-    from  st_loss_month
-    order by intake_id DESC, id DESC
-  </select>
+    <!-- 婕忔崯缁熻鐩稿叧 -->
+    <select id="selectAllStLossMonth" resultType="com.dy.pipIrrGlobal.voTmp.VoStLossAmountMonth">
+        select id as id,
+               intake_id as intakeId ,
+               year as year,
+               month as month,
+               amount as amount
+        from  st_loss_month
+        order by intake_id DESC, id DESC
+    </select>
 
-  <delete id="deleteStLossMonthById" parameterType="java.lang.Long">
-    delete from st_loss_month
-    where id = #{id,jdbcType=BIGINT}
-  </delete>
+    <delete id="deleteStLossMonthById" parameterType="java.lang.Long">
+        delete from st_loss_month
+        where id = #{id,jdbcType=BIGINT}
+    </delete>
+
+    <select id="selectAllStLossYear" resultType="com.dy.pipIrrGlobal.voTmp.VoStLossAmountYear">
+        select id as id,
+               intake_id as intakeId ,
+               year as year,
+               amount as amount
+        from  st_loss_year
+        order by intake_id DESC, id DESC
+    </select>
+
+    <delete id="deleteStLossYearById" parameterType="java.lang.Long">
+        delete from st_loss_year
+        where id = #{id,jdbcType=BIGINT}
+    </delete>
+
+
+
+    <!-- 鍙栨按鍙g粺璁$浉鍏� -->
+    <select id="selectAllStIntakeMonth" resultType="com.dy.pipIrrGlobal.voTmp.VoStIntakeAmountMonth">
+        select id as id,
+               intake_id as intakeId ,
+               year as year,
+               month as month,
+               amount as amount
+        from  st_intake_amount_month
+        order by intake_id DESC, id DESC
+    </select>
+
+    <delete id="deleteStIntakeMonthById" parameterType="java.lang.Long">
+        delete from st_intake_amount_month
+        where id = #{id,jdbcType=BIGINT}
+    </delete>
+
+    <select id="selectAllStIntakeYear" resultType="com.dy.pipIrrGlobal.voTmp.VoStIntakeAmountYear">
+        select id as id,
+               intake_id as intakeId ,
+               year as year,
+               amount as amount
+        from  st_intake_amount_year
+        order by intake_id DESC, id DESC
+    </select>
+
+    <delete id="deleteStIntakeYearById" parameterType="java.lang.Long">
+        delete from st_intake_amount_year
+        where id = #{id,jdbcType=BIGINT}
+    </delete>
+
+
+
+    <!-- 鍐滄埛缁熻鐩稿叧 -->
+    <select id="selectAllStClientMonth" resultType="com.dy.pipIrrGlobal.voTmp.VoStClientAmountMonth">
+        select id as id,
+               client_id as clientId ,
+               year as year,
+               month as month,
+               amount as amount
+        from  st_client_amount_month
+        order by client_id DESC, id DESC
+    </select>
+
+    <delete id="deleteStClientMonthById" parameterType="java.lang.Long">
+        delete from st_client_amount_month
+        where id = #{id,jdbcType=BIGINT}
+    </delete>
+
+    <select id="selectAllStClientYear" resultType="com.dy.pipIrrGlobal.voTmp.VoStClientAmountYear">
+        select id as id,
+               client_id as clientId ,
+               year as year,
+               amount as amount
+        from  st_client_amount_year
+        order by client_id DESC, id DESC
+    </select>
+
+    <delete id="deleteStClientYearById" parameterType="java.lang.Long">
+        delete from st_client_amount_year
+        where id = #{id,jdbcType=BIGINT}
+    </delete>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0