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 | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml index d8ef601..19d3030 100644 --- a/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml +++ b/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml @@ -112,18 +112,23 @@ </insert> <select id="selectArdTankLockStateByLockIdLimitOne" parameterType="java.lang.String" resultMap="ArdTankLockStateResult"> - select atls.id,atls.lock_id,atls.lock_num as slock_num, - atls.lock_state,atls.lock_position_state,atls.lock_shell_state, - atls.restart_state as srestart_state,atls.batter_voltage, - atls.power_voltage,atls.upload_time,atls.unique_mark, + 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 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