From b8470f5e90d0aed22bf2c4bf9f5d2a13cd60b15f Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 30 十二月 2024 14:03:41 +0800
Subject: [PATCH] 1、统计模块实现农户日用水量纵转横转存,月、年用水量统计; 2、临时模块农户日用水量纵转横转存,月、年用水量统计;

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeTrackMapper.xml |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeTrackMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeTrackMapper.xml
index fc9cd24..6231a5d 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeTrackMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeTrackMapper.xml
@@ -99,4 +99,24 @@
       locate_time = #{locateTime,jdbcType=TIMESTAMP}
     where id = #{id,jdbcType=BIGINT}
   </update>
+
+  <!--鎵归噺娣诲姞宸℃杞ㄨ抗-->
+  <insert id="insertTracks">
+    INSERT INTO ope_track (id, inspect_id, lng, lat, locate_time)
+    VALUES
+    <foreach collection="list" item="item" index="index" separator=",">
+      (#{item.id}, #{item.inspectId}, #{item.lng}, #{item.lat}, #{item.locateTime})
+    </foreach>
+  </insert>
+    <!--鏍规嵁宸℃id鏌ヨ杞ㄨ抗-->
+<!--  <select id="selectByInspectId" resultMap="BaseResultMap">-->
+  <select id="selectByInspectId" resultType="com.dy.pipIrrGlobal.pojoOp.OpeTrack">
+    SELECT
+      id,
+      inspect_id AS inspectId,
+      lng,
+      lat,
+      locate_time AS locateTime
+    FROM ope_track WHERE inspect_id = #{inspectId}
+  </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0