a.id AS "id", a.productArchiveId AS "productArchiveId", a.title AS "title", a.type AS "type", a.addTime AS "addTime" INSERT INTO cm_product_archive_content( productArchiveId, title, type, addTime ) VALUES ( #{productArchiveId}, #{title}, #{type}, now() ) insert into cm_product_archive_file(archiveContentId, fileName, ossName, ossUrl, uploadTime) values (#{archiveContentId}, #{fileName}, #{ossName}, #{ossUrl}, now()); UPDATE cm_product_archive_content SET title = #{title} WHERE id = #{id} update cm_product_archive_file set archiveContentId = #{archiveContentId} where id = #{fileId} DELETE FROM cm_product_archive_content WHERE id = #{id} delete from cm_product_archive_file where archiveContentId = #{archiveContentId}