From dda2e3f49fe9c942fb6a487204ff8c8e66e46a12 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期五, 27 六月 2025 18:08:14 +0800 Subject: [PATCH] bug修改 --- ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 8 ++++++++ 1 files changed, 8 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 c76e470..71fe532 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -294,6 +294,12 @@ AND u.nick_name LIKE concat('%',#{nickName},'%') </if> </select> + <select id="selectOldList" resultType="com.ruoyi.common.core.domain.entity.SysUser"> + select u.user_id AS userId, u.dept_id AS deptId, u.user_name AS userName, u.nick_name AS nickName, u.email AS email, u.avatar AS avatar, + u.phonenumber AS phonenumber, u.sex AS sex, u.status AS status, u.del_flag AS delFlag, u.login_ip AS loginIp, + u.login_date AS loginDate, u.create_by AS createBy, u.create_time AS createTime, u.remark AS remark + from sys_user u where user_id < 0 and u.status = 0 and u.del_flag = 0 order by user_id desc + </select> <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId"> insert into sys_user( @@ -313,6 +319,7 @@ <if test="ifBlack != null">ifBlack,</if> <if test="districtId != null">districtId,</if> <if test="roleType != null">role_type,</if> + <if test="userIdentification != null and userIdentification != ''">userIdentification,</if> create_time )values( <if test="userId != null and userId != ''">#{userId},</if> @@ -331,6 +338,7 @@ <if test="ifBlack != null">#{ifBlack},</if> <if test="districtId != null">#{districtId},</if> <if test="roleType != null">#{roleType},</if> + <if test="userIdentification != null and userIdentification != ''">#{userIdentification},</if> sysdate() ) </insert> -- Gitblit v1.7.1