@@ -21,8 +21,8 @@ | |||
tfh.audit_time as auditTime | |||
from | |||
th_inspection_file as tf | |||
left join th_inspection_file_handle AS tfh on tf.id = tfh.inspection_file_id | |||
where tf.mark =1 and tfh.mark=1 | |||
left join th_inspection_file_handle AS tfh on tf.id = tfh.inspection_file_id and tfh.mark=1 | |||
where tf.mark =1 | |||
and tf.id=#{id} | |||
</select> | |||