| | |
| | | and t1.pollute_type = #{allocation.polluteType} |
| | | </if> |
| | | <if test="allocation.state != null and allocation.state != 0"> |
| | | and t1.state = #{allocation.state} |
| | | and allocationextension.state = #{allocation.state} |
| | | </if> |
| | | <if test="allocation.investigationType != null and allocation.investigationType != 0"> |
| | | and t1.investigation_type = #{allocation.investigationType} |
| | |
| | | <if test="allocation.endTime != null and allocation.endTime !='' "> |
| | | and date(t1.escalation_time) <![CDATA[<=]]> #{allocation.endTime} |
| | | </if> |
| | | <if test="allocation.unitList != null and allocation.unitList.size !=0"> |
| | | and t1.unit_id in |
| | | <foreach collection="allocation.unitList" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | |
| | | </where> |
| | | order by t1.escalation_time desc,t1.allocation_id desc |