A.oc_id, A.task_id, A.check_record_id, A.file_id, B.file_title, B.dir_id, B.file_url, B.file_ext, B.file_size, B.file_author, B.file_desc, B.uploaded_by AS uploader_id, C.account_name AS uploader_name, B.uploaded_at INSERT INTO check_record_attach oc_id, task_id, check_record_id, file_id, created_at, created_by, #{ocId ,jdbcType=BIGINT}, #{taskId ,jdbcType=BIGINT}, #{checkRecordId ,jdbcType=BIGINT}, #{fileId ,jdbcType=BIGINT}, #{createdAt ,jdbcType=TIMESTAMP}, #{createdBy ,jdbcType=BIGINT}, DELETE FROM check_record_attach WHERE 1 = 1 AND oc_id = #{ocId ,jdbcType=BIGINT} AND task_id = #{taskId ,jdbcType=BIGINT} AND check_record_id = #{checkRecordId ,jdbcType=BIGINT} AND file_id = #{fileId ,jdbcType=BIGINT}