|
@@ -65,14 +65,13 @@
|
|
|
and (
|
|
|
<trim prefixOverrides="or">
|
|
|
<if test="pm.startDate1 != null and pm.startDate1 != ''">
|
|
|
- or ( ej.finish_time BETWEEN #{pm.startDate1} AND #{pm.endDate1} and ev.create_time <![CDATA[ > ]]> '2024-12-23 00:00:00' )
|
|
|
+ or ( ej.finish_time BETWEEN #{pm.startDate1} AND #{pm.endDate1} and ev.create_time <![CDATA[ > ]]> '2024-12-23 00:00:00' and ej.enforce_result = 'PASS')
|
|
|
</if>
|
|
|
<if test="pm.startDate2 != null and pm.startDate2 != ''">
|
|
|
- or ( ej.finish_time BETWEEN #{pm.startDate2} AND #{pm.endDate2} and ev.create_time<![CDATA[ > ]]> '2024-12-28 00:00:00' )
|
|
|
+ or ( ej.finish_time BETWEEN #{pm.startDate2} AND #{pm.endDate2} and ev.create_time<![CDATA[ > ]]> '2024-12-28 00:00:00' and ej.enforce_result = 'PASS')
|
|
|
</if>
|
|
|
<if test="pm.endDate3 != null and pm.endDate3 != ''">
|
|
|
or ( ej.finish_time BETWEEN '2024-12-18 00:00:00' AND #{pm.endDate3} and ev.create_time <![CDATA[ > ]]> DATE_ADD(ej.finish_time, INTERVAL 10 DAY) )
|
|
|
- or ( ej.finish_time BETWEEN '2024-12-17 00:00:00' AND #{pm.endDate3} and ej.enforce_result = 'OVERPASS' )
|
|
|
</if>
|
|
|
</trim>
|
|
|
)
|
|
@@ -91,10 +90,10 @@
|
|
|
AND job_type IN ( 'NORMAL', 'REPORT' )
|
|
|
AND is_deleted = 0
|
|
|
<if test="pm.startDate != null and pm.startDate !=''">
|
|
|
- AND finish_time <![CDATA[ >= ]]> #{pm.startDate}
|
|
|
+ AND last_enforce_date <![CDATA[ >= ]]> #{pm.startDate}
|
|
|
</if>
|
|
|
<if test="pm.endDate != null and pm.endDate !=''">
|
|
|
- AND finish_time <![CDATA[ <= ]]> #{pm.endDate}
|
|
|
+ AND last_enforce_date <![CDATA[ <= ]]> #{pm.endDate}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
enforce_org_id
|
|
@@ -145,6 +144,9 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="pm.executorId != null and pm.executorId != ''">
|
|
|
+ and executor_id = #{pm.executorId}
|
|
|
+ </if>
|
|
|
<if test="pm.startDate != null and pm.startDate !=''">
|
|
|
AND s_time <![CDATA[ >= ]]> #{pm.startDate}
|
|
|
</if>
|