| | |
| | | <include refid="gdSupplyDemandCondition"/> |
| | | <if test="deptIdList != null and deptIdList.size > 0"> |
| | | AND ( |
| | | create_dept IN |
| | | <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | OR apply_target_dept_id IN |
| | | <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | create_dept::text IN |
| | | <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId}::text |
| | | </foreach> |
| | | OR |
| | | apply_target_dept_id::text IN |
| | | <foreach collection="deptIdList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId}::text |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | </where> |