| | |
| | | u.phonenumber, u.sex, u.status, |
| | | u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark from sys_user u |
| | | where u.del_flag = '0' |
| | | <if test="orgid != null"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="userId != null"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name = #{userName} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="deptId != null and deptId != ''"> |
| | | AND u.dept_id = #{deptId} |
| | | </if> |
| | |
| | | where u.user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult"> |
| | | <select id="checkUserNameUnique" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select user_id, user_name |
| | | from sys_user |
| | | where user_name = #{userName} |
| | | and del_flag = '0' limit 1 |
| | | and del_flag = '0' |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | and campusid = #{campusid} |
| | | </if> |
| | | limit 1 |
| | | </select> |
| | | |
| | | <select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult"> |