隐患排查bug

This commit is contained in:
2026-05-31 20:30:05 +08:00
parent 5b3c300c75
commit 0ebdcdb6bf
6 changed files with 157 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ SET `submit_version` = IFNULL(NULLIF(`submit_version`, 0), 1),
`last_reject_by_name` = COALESCE(NULLIF(`last_reject_by_name`, ''), `approver_name`),
`flow_status` = 'REJECTED',
`instance_id` = NULL,
`status` = 1
`status` = 10
WHERE `is_deleted` = 0;
-- 2. 将老数据写入驳回历史表
@@ -129,7 +129,7 @@ WHERE i.`is_deleted` = 0
COMMIT;
-- 校验SQL
-- SELECT COUNT(*) FROM hot_hidden_danger_inspection WHERE is_deleted = 0 AND audit_result = 'REJECT' AND status = 1;
-- SELECT COUNT(*) FROM hot_hidden_danger_inspection WHERE is_deleted = 0 AND audit_result = 'REJECT' AND status = 10;
-- SELECT COUNT(*) FROM hot_hidden_danger_inspection_audit_history WHERE is_deleted = 0;