| | |
| | | where u.user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="selectUserByIds" parameterType="Long" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_id in <foreach collection="userIds" open="(" separator="," close=")" item="userId">#{userId}</foreach> |
| | | </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> |
| | |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="getByDept" resultMap="SysUserResult"> |
| | | select * from sys_user where dept_id = #{deptId} and del_flag = '0' |
| | | </select> |
| | | </mapper> |