| | |
| | | </select> |
| | | |
| | | <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, user_name from sys_user where user_name = #{userName} and del_flag = '0' limit 1 |
| | | select user_id, user_name from sys_user where user_name = #{userName} |
| | | <if test="null != objectId"> |
| | | and objectId = #{objectId} |
| | | </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} and del_flag = '0' limit 1 |
| | | select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} |
| | | <if test="null != objectId"> |
| | | and objectId = #{objectId} |
| | | </if> |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult"> |
| | |
| | | </if> |
| | | <if test="null != req.status"> |
| | | and status = #{req.status} |
| | | </if> |
| | | <if test="null != req.objectId"> |
| | | and objectId = #{req.objectId} |
| | | </if> |
| | | and del_flag = '0' and role_type =1 |
| | | order by create_time desc |
| | |
| | | <if test="query.nickName != null and query.nickName != ''"> |
| | | AND nick_name LIKE concat('%',#{query.nickName},'%') |
| | | </if> |
| | | <if test="null != query.objectId"> |
| | | and objectId = #{query.objectId} |
| | | </if> |
| | | AND del_flag = '0' |
| | | AND role_type = 1 |
| | | </where> |