From 5fa6e6f8410ef9d057174bcff2a3c5038c54a551 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期日, 27 四月 2025 18:41:20 +0800 Subject: [PATCH] bug修改 --- ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index 21458b9..0e84df6 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -250,7 +250,7 @@ #{roleId} </foreach> </if> - <if test="query.businessDeptId != null and query.businessDeptId != '' and query.businessDeptId != '0'"> + <if test="query.businessDeptId != null and query.businessDeptId != '' and query.businessDeptId != 0"> AND u.business_dept_id = #{query.businessDeptId} </if> ORDER BY u.create_time DESC @@ -276,6 +276,7 @@ <if test="remark != null and remark != ''">remark,</if> <if test="ifBlack != null">ifBlack,</if> <if test="districtId != null">districtId,</if> + <if test="businessDeptId != null">business_dept_id,</if> create_time )values( <if test="userId != null and userId != ''">#{userId},</if> @@ -294,6 +295,7 @@ <if test="remark != null and remark != ''">#{remark},</if> <if test="ifBlack != null">#{ifBlack},</if> <if test="districtId != null">#{districtId},</if> + <if test="businessDeptId != null">#{businessDeptId},</if> sysdate() ) </insert> @@ -320,6 +322,7 @@ <if test="disableRemark != null">disable_remark = #{disableRemark},</if> <if test="operatingTime != null">operating_time = #{operatingTime},</if> <if test="operatingPerson != null">operating_person = #{operatingPerson},</if> + <if test="businessDeptId != null">business_dept_id = #{businessDeptId},</if> update_time = sysdate() </set> where user_id = #{userId} -- Gitblit v1.7.1