| | |
| | | AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | <if test="params != null and params.dataScope != null"> |
| | | <if test="params != null and params.dataScope != null and params.dataScope != ''"> |
| | | AND ${params.dataScope} |
| | | </if> |
| | | </select> |
| | |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | <if test="params != null and params.dataScope != null"> |
| | | <if test="params != null and params.dataScope != null and params.dataScope != ''"> |
| | | AND ${params.dataScope} |
| | | </if> |
| | | </select> |
| | |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | <if test="params != null and params.dataScope != null"> |
| | | <if test="params != null and params.dataScope != null and params.dataScope != ''"> |
| | | AND ${params.dataScope} |
| | | </if> |
| | | </select> |
| | |
| | | update sys_user set password = #{password}, recommend_user = #{recommendUser} where user_name = #{userName} |
| | | </update> |
| | | |
| | | <update id="resetPhone" parameterType="SysUser"> |
| | | update sys_user set phonenumber = #{phone}, user_name = #{phone} where user_id = #{userId} |
| | | </update> |
| | | |
| | | <delete id="deleteUserById" parameterType="Long"> |
| | | update sys_user set del_flag = '1' where user_id = #{userId} |
| | | </delete> |
| | |
| | | select u.phonenumber |
| | | from sys_user u |
| | | join sys_user_role ur on u.user_id = ur.user_id |
| | | join sys_role r on r.role_id=ur.role_id |
| | | join sys_role r on r.role_id = ur.role_id |
| | | join sys_user_dept ud on u.user_id = ud.dept_id |
| | | where |
| | | u.user_type != '02' |
| | | and u.status='0' |
| | | and r.role_key = #{roleKey} |
| | | and u.dept_id = #{deptId} |
| | | and ud.dept_id = #{deptId} |
| | | </select> |
| | | |
| | | </mapper> |