From c66ed1dcf64032a45ba053cd9ae71317d29d1fe3 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 21 一月 2025 14:18:11 +0800
Subject: [PATCH] 针对远程RTU升级,增加快速命令类型,为此增加相关配置,增加相关处理逻辑
---
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