liusheng
4 天以前 bb9fd6f1fad1a20e7536fad50f7f8c7d932a9011
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -123,9 +123,12 @@
        u
        left join sys_dept d on u.dept_id = d.dept_id
        where u.del_flag = '0'
        <if test="userId != null and userId != 0">
        <if test="userId != null">
            AND u.user_id = #{userId}
        </if>
        <if test="orgid != null and orgid != ''">
            AND u.orgid = #{orgid}
        </if>
        <if test="userName != null and userName != ''">
            AND u.user_name like concat('%', #{userName}, '%')
        </if>