| | |
| | | WHERE |
| | | a.deleted=0 |
| | | <if test="departmentId != null and departmentId.size() > 0"> |
| | | AND b.department_id IN <foreach collection="departmentId" item="item" index="index" open="(" separator="," close=")"> #{item} </foreach> |
| | | AND b.department_id IN <foreach collection="departmentId" item="item" open="(" separator="," close=")"> #{item} </foreach> |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND real_name LIKE concat('%',#{userName},'%') |
| | |
| | | ]]> |
| | | </select> |
| | | |
| | | <select id="getDeptIds" resultType="integer"> |
| | | SELECT department_id FROM t_user_department WHERE user_id = #{userId} AND dept_admin != 1 |
| | | </select> |
| | | |
| | | </mapper> |