xuhy
2 天以前 dda2e3f49fe9c942fb6a487204ff8c8e66e46a12
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 &lt; 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>