From babddaa73918a054346b9af3f3926831c4667c1b Mon Sep 17 00:00:00 2001 From: Administrator <1144154118@qq.com> Date: 星期四, 03 八月 2023 17:17:10 +0800 Subject: [PATCH] 巡检计划从表查询及删除导出 --- 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 4479047..8e1754c 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -25,6 +25,7 @@ <result property="cameraPriority" column="camera_priority"/> <result property="rongCloudToken" column="rong_cloud_token"/> <result property="appUserType" column="app_user_type"/> + <result property="appOnlineState" column="app_online_state"/> <result property="remark" column="remark"/> <association property="dept" column="dept_id" javaType="SysDept" resultMap="deptResult"/> <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> @@ -68,6 +69,7 @@ u.camera_priority, u.rong_cloud_token, u.app_user_type, + u.app_online_state, u.remark, d.dept_id, d.parent_id, @@ -245,6 +247,7 @@ <if test="cameraPriority != null">camera_priority = #{cameraPriority},</if> <if test="rongCloudToken != null">rong_cloud_token = #{rongCloudToken},</if> <if test="appUserType != null">app_user_type = #{appUserType},</if> + <if test="appOnlineState != null">app_online_state = #{appOnlineState},</if> update_time = now() </set> where user_id = #{userId} @@ -288,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 nick_name from sys_user where 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