@@ -128,9 +128,9 @@ | |||
and wi.`status` in (0, 2) | |||
AND IF | |||
( | |||
qi.handler_time IS NOT NULL, | |||
qi.handler_time > DATE_ADD(qi.create_time, INTERVAL qt.rectification DAY), | |||
now() > DATE_ADD(qi.create_time, INTERVAL qt.rectification DAY)) | |||
wi.handler_time IS NOT NULL, | |||
wi.handler_time > DATE_ADD(w.assign_time, INTERVAL qt.rectification DAY), | |||
now() > DATE_ADD(w.assign_time, INTERVAL qt.rectification DAY)) | |||
GROUP BY w.id | |||
ORDER BY w.create_time DESC | |||
</select> |