select attachment_id, task_id, file_name, file_path, file_size, file_type, upload_time, upload_by from sys_task_attachment insert into sys_task_attachment task_id, file_name, file_path, file_size, file_type, upload_time, upload_by, #{taskId}, #{fileName}, #{filePath}, #{fileSize}, #{fileType}, #{uploadTime}, #{uploadBy}, update sys_task_attachment task_id = #{taskId}, file_name = #{fileName}, file_path = #{filePath}, file_size = #{fileSize}, file_type = #{fileType}, upload_time = #{uploadTime}, upload_by = #{uploadBy}, where attachment_id = #{attachmentId} delete from sys_task_attachment where attachment_id = #{attachmentId} delete from sys_task_attachment where attachment_id in #{attachmentId} delete from sys_task_attachment where task_id = #{taskId}