From 24f53bb77f9ac80feb2e62e8ee670be4aa5f3c6e Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 13 二月 2025 11:56:42 +0800 Subject: [PATCH] 1、远程模块remote模块实现: (1、系统启动时向通信中间件注册消息接收者; (2、消息接收者ctr实现(测试阶段); 2、在配置文件增加配置Springboot RestTemplate网络请求超时时长; 3、其他一些测试与优化。 --- 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