INSERT INTO data_file_upload( file_upload_id, catalogue_id, file_type_id, file_id, file_type, content, remake, file_modular, pdf_file_path, creator, gmt_create, modifier, gmt_modified, is_delete ) VALUES( #{fileUploadId}, #{catalogueId}, #{fileTypeId}, #{fileId}, #{fileType}, #{content}, #{remake}, #{fileModular}, #{pdfFilePath}, #{creator}, #{gmtCreate}, #{modifier}, #{gmtModified}, #{isDelete} ) UPDATE data_file_upload SET gmt_modified = #{gmtModified}, modifier = #{modifier}, is_delete = 1 WHERE file_upload_id IN #{fileUploadIds[${index}]} DELETE FROM data_file_upload WHERE file_upload_id IN #{fileUploadIds[${index}]} UPDATE data_file_upload SET catalogue_id = #{catalogueId}, file_type_id = #{fileTypeId}, file_id = #{fileId}, file_type = #{fileType}, content = #{content}, remake = #{remake}, file_modular = #{fileModular}, pdf_file_path = #{pdfFilePath}, gmt_modified = #{gmtModified}, modifier = #{modifier}, file_upload_id = file_upload_id WHERE file_upload_id = #{fileUploadId}