| | |
| | | </select> |
| | | |
| | | <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, user_name from sys_user where user_name = #{userName} |
| | | <if test="null != objectId"> |
| | | and objectId = #{objectId} |
| | | select user_id, user_name from sys_user where user_name = #{sysUser.userName} |
| | | <if test="null != sysUser.objectId"> |
| | | and objectId = #{sysUser.objectId} |
| | | </if> |
| | | <if test="null != sysUser.roleType"> |
| | | and role_type = #{sysUser.roleType} |
| | | </if> |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} |
| | | <if test="null != objectId"> |
| | | and objectId = #{objectId} |
| | | select user_id, phonenumber from sys_user where phonenumber = #{sysUser.phonenumber} |
| | | <if test="null != sysUser.objectId"> |
| | | and objectId = #{sysUser.objectId} |
| | | </if> |
| | | <if test="null != sysUser.roleType"> |
| | | and role_type = #{sysUser.roleType} |
| | | </if> |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | <select id="checkNickNameUnique" resultMap="SysUserResult"> |
| | | select user_id, user_name from sys_user where nick_name = #{nickName} |
| | | select user_id, user_name from sys_user where nick_name = #{sysUser.nickName} |
| | | <if test="null != sysUser.objectId"> |
| | | and objectId = #{sysUser.objectId} |
| | | </if> |
| | | <if test="null != sysUser.roleType"> |
| | | and role_type = #{sysUser.roleType} |
| | | </if> |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | | |