| | |
| | | left join allocation_extension t1 on t1.allocation_id = allocation.allocation_id and t1.is_del =0 and t1.is_invalid = 0 and t1.state = 30 |
| | | <where> |
| | | 1 = 1 and allocation.is_del = 0 |
| | | <if test="allocation.unitId != null"> |
| | | and allocation.unit_id = #{allocation.unitId} |
| | | <if test="allocation.unitId != null and allocation.unitId.size != 0"> |
| | | and allocation.unit_id in |
| | | <foreach collection="allocation.unitId" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="allocation.polluteType != null and allocation.polluteType != 0"> |
| | | and allocation.pollute_type = #{allocation.polluteType} |
| | | <if test="allocation.polluteType != null and allocation.polluteType.size != 0"> |
| | | and allocation.pollute_type in |
| | | <foreach collection="allocation.polluteType" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="allocation.state != null and allocation.state != 0"> |
| | | and allocation.state = #{allocation.state} |
| | | <if test="allocation.state != null and allocation.state.size != 0"> |
| | | and allocation.state in |
| | | <foreach collection="allocation.state" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="allocation.investigationType != null and allocation.investigationType != 0"> |
| | | and allocation.investigation_type = #{allocation.investigationType} |