@@ -178,6 +178,7 @@
left join analysis_type type
on count.analysis_type_code = type.type_code
where count.is_delete = 0
+ and count.err_count > count.handle_err_count
and count.batch_code = #{batchCode}
and count.engine_code = #{engineCode}