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/management3d/ArdTiles3dMapper.xml | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml b/ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml index adfbdcb..f7f2f24 100644 --- a/ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml +++ b/ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml @@ -74,7 +74,9 @@ <if test="dynamicScreenSpaceErrorDensity != null ">and c.dynamic_screen_space_error_density = #{dynamicScreenSpaceErrorDensity} </if> - <if test="deptId != null ">and c.dept_id = #{deptId}</if> + <if test="deptId != null ">and (c.dept_id = #{deptId} OR c.dept_id IN ( SELECT t.dept_id FROM sys_dept t + WHERE cast(#{deptId} as varchar) = any(string_to_array(ancestors,',')) )) + </if> <if test="userId != null and userId != ''">and c.user_id = #{userId}</if> </where> <!-- 鏁版嵁鑼冨洿杩囨护 --> @@ -181,4 +183,4 @@ from ard_tiles3d where dept_id = #{deptId} </select> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.9.3