From 72359f3c9e9fe855ecafafb769ed52fc2a7f7e61 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: 星期六, 10 八月 2024 09:46:02 +0800
Subject: [PATCH] 优化:视频通话会话列表和详情获取最后一条消息中增加用户名称和头像
---
ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml
index 180db6b..19d3030 100644
--- a/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml
+++ b/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml
@@ -110,4 +110,25 @@
#{uniqueMark,jdbcType=VARCHAR})
on conflict(unique_mark) do update set upload_time=#{uploadTime,jdbcType=VARCHAR}
</insert>
+
+ <select id="selectArdTankLockStateByLockIdLimitOne" parameterType="java.lang.String" resultMap="ArdTankLockStateResult">
+ select atls.id,atls.lock_id,atls.lock_num,atls.lock_state,
+ atls.lock_position_state,atls.lock_shell_state,atls.restart_state,
+ atls.batter_voltage,atls.power_voltage,atls.upload_time,atls.unique_mark,
+ case atls.lock_state
+ when '鍏抽攣鐘舵��' then false
+ when '寮傚父鐘舵��' then false
+ /*when '鍔ㄤ綔鐘舵��' then false*/
+ when '鎿嶆帶涓�...' then false
+ when '寮�閿佺姸鎬�' then true
+ end as lock_state_mark
+ from ard_tank_lock_state atls
+ where atls.lock_id = #{lockId} order by atls.upload_time desc
+ limit 1
+ </select>
+
+ <update id="updateArdTankLockStateByUniqueMark" parameterType="java.lang.String">
+ update ard_tank_lock_state set upload_time = #{uploadTime}
+ where unique_mark = #{uniqueMark}
+ </update>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3