From 4cc19e25b2a210ba4b5af46f30f28dbe4ca289fe Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期四, 27 七月 2023 08:56:22 +0800
Subject: [PATCH] 修改websocket包位置 增加单兵端-下发给我的任务详情 增加app位置websocket推送按用户频率

---
 ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index 08396d0..5f916c9 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -283,4 +283,11 @@
         </foreach>
     </delete>
 
+    <select id="getSysUserByCarId" parameterType="java.lang.String" resultMap="SysUserResult">
+        select * from sys_user su where su.dept_id in (
+        select cast(unnest(array_append(string_to_array(sd.ancestors,','),
+        cast(sd.dept_id as text))) as int) from ard_sy_car asy
+        inner join sys_dept sd on asy.dept_id = sd.dept_id
+        where asy.car_id = #{carId})
+    </select>
 </mapper> 
\ No newline at end of file

--
Gitblit v1.9.3