| | |
| | | <if test="param.demandStatus != null and param.demandStatus != ''"> |
| | | AND demand_status = #{param.demandStatus} |
| | | </if> |
| | | <if test="deptIdList != null and deptIdList.size > 0"> |
| | | <if test="param.deptList != null and param.deptList.size > 0"> |
| | | AND ( |
| | | create_dept IN |
| | | <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")"> |
| | | <foreach collection="param.deptList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | OR apply_target_dept_id IN |
| | | <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")"> |
| | | <foreach collection="param.deptList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | ) |