bug修复

This commit is contained in:
GUO 2024-05-07 15:52:17 +08:00
parent c4a2f9876f
commit dfa1adfd79

View File

@ -50,7 +50,7 @@
ifnull((CASE
WHEN a.status = 5 THEN (select rectify_time
from xz_security_quality_rectify_record
where quality_id = a.id and type = 3 and status = 2) > a.change_limit_time
where quality_id = a.id and type = 3 and status = 2 ORDER BY create_time desc LIMIT 1) > a.change_limit_time
ELSE a.change_limit_time <![CDATA[<]]> now() END),0) overTime
from xz_security_quality_inspection_record a
LEFT JOIN enterprise_info b ON a.enterprise_sn = b.enterprise_sn