@@ -653,6 +653,7 @@
and AIP.PLAN_STATUS = 2
</if>
<if test="planStatus == 3">
+ and AIP.PLAN_STATUS = 3
and to_date(#{newTime}, 'yyyy-mm-dd hh24:mi:ss') <= AIR.DUE_DATE
<if test="con != null">