| | |
| | | AND (u.dept_id = #{user.deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{user.deptId}, |
| | | ancestors) )) |
| | | </if> |
| | | <!-- <!– 数据范围过滤 –>--> |
| | | <!-- <if test="user.params.dataScope != null and user.params.dataScope != ''">--> |
| | | <!-- AND ( ${user.params.dataScope} )--> |
| | | <!-- </if>--> |
| | | </select> |
| | | |
| | | <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult"> |
| | |
| | | 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.dataScope != null and params.dataScope != ''">--> |
| | | <!-- AND ( ${params.dataScope} )--> |
| | | <!-- </if>--> |
| | | </select> |
| | | |
| | | <select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult"> |
| | |
| | | <if test="user.phonenumber != null and user.phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{user.phonenumber}, '%') |
| | | </if> |
| | | <!-- <!– 数据范围过滤 –>--> |
| | | <!-- <if test="user.params.dataScope != null and user.params.dataScope != ''">--> |
| | | <!-- AND ( ${user.params.dataScope} )--> |
| | | <!-- </if>--> |
| | | </select> |
| | | |
| | | <select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult"> |
| | |
| | | <if test="user.phonenumber != null and user.phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{user.phonenumber}, '%') |
| | | </if> |
| | | <!-- <!– 数据范围过滤 –>--> |
| | | <!-- <if test="user.params.dataScope != null and user.params.dataScope != ''">--> |
| | | <!-- AND ( ${user.params.dataScope} )--> |
| | | <!-- </if>--> |
| | | </select> |
| | | |
| | | <select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult"> |