From 44a78bc47ab66d6492bc0579f58f24dc1921b5d5 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 03 四月 2025 15:44:30 +0800
Subject: [PATCH] 1、webSocket相关代码进行了注解优化; 2、通信中间件把阀控器上报的阀门状态进行消息推送,前端、小程序可能用到(webSocket推送)。
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeTrackMapper.xml | 25 +++++++++++++++++++++++++
1 files changed, 25 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..977af0a 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,29 @@
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>
+
+ <!--鑾峰彇鎸囧畾宸℃ID涓嬬殑鍏ㄩ儴杞ㄨ抗鐐�-->
+ <select id="getTrackPointsById" resultType="com.dy.pipIrrGlobal.voOp.VoTrackPoint">
+ SELECT lng, lat FROM ope_track WHERE inspect_id = #{inspectId}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0