| | |
| | | select * from sys_user |
| | | where 1=1 |
| | | <if test="ids != null and ids.size()>0"> |
| | | AND deptId IN |
| | | AND dept_id IN |
| | | <foreach collection="ids" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | |
| | | |
| | | <select id="selectListByDeptId" resultType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | select u.* |
| | | from sys_user u where u.deptId = #{deptId} and u.status = 0 and u.del_flag = 0 |
| | | from sys_user u where u.dept_id = #{deptId} and u.status = 0 and u.del_flag = 0 |
| | | </select> |
| | | <select id="selectListByDeptType" resultType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | select u.* |
| | |
| | | select u.* |
| | | from sys_user u where u.status = 0 and u.del_flag = 0 |
| | | <if test="projectIds != null and projectIds.size() > 0"> |
| | | and u.deptId in |
| | | and u.dept_id in |
| | | <foreach item="item" collection="projectIds" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | |
| | | and deptType = #{deptType} |
| | | </if> |
| | | <if test="projectIds != null and projectIds.size() > 0"> |
| | | and deptId in |
| | | and dept_id in |
| | | <foreach item="item" collection="projectIds" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |