| | |
| | | <if test="queryDTO.parentId !=null "> |
| | | and t.parent_id = #{queryDTO.parentId} |
| | | </if> |
| | | <if test="queryDTO.contractCategory !=null and queryDTO.contractCategory !='' and queryDTO.contractCategory=='water_house'"> |
| | | and t.erp_code in |
| | | <foreach collection="erpCodes" item="erp" open="(" separator="," close=")"> |
| | | #{erp} |
| | | </foreach> |
| | | </if> |
| | | <choose> |
| | | <when test="queryDTO.contractCategory !=null and queryDTO.contractCategory !='' and queryDTO.contractCategory=='water_house'"> |
| | | and t.erp_code in |
| | | <foreach collection="erpCodes" item="erp" open="(" separator="," close=")"> |
| | | #{erp} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and t.erp_code not in |
| | | <foreach collection="erpCodes" item="erp" open="(" separator="," close=")"> |
| | | #{erp} |
| | | </foreach> |
| | | </otherwise> |
| | | </choose> |
| | | |
| | | </select> |
| | | </mapper> |