From 0878c49058d5f11858a03738208b7c37c82a1591 Mon Sep 17 00:00:00 2001 From: Administrator <1144154118@qq.com> Date: 星期一, 07 八月 2023 11:35:17 +0800 Subject: [PATCH] 巡检计划查询优化 --- ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 4 ++++ 1 files changed, 4 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 dadfb99..a441840 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -291,4 +291,8 @@ inner join sys_dept sd on asy.dept_id = sd.dept_id where asy.car_id = #{carId}) </select> + + <select id="userByPlanId" parameterType="String" resultMap="SysUserResult"> + select * from sys_user where user_id in (select app_user_id from ard_app_patroluser where patrolplan_id = #{id}) + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3