INSERT INTO `catalogue_data` ( `company_id`, `catalogue_id`, `content`, `analysis`, `create_by`, `create_time` ) VALUES ( #{companyId}, #{catalogueId}, #{content}, #{analysis}, #{createBy}, #{createTime} ) INSERT INTO `train_exam`.`catalogue_data_file` ( `catalogue_id`,`company_id`, `name`, `file_path`,`file_name`, `type`, `create_by`, `create_time` ) VALUES ( #{catalogueId},#{companyId}, #{name}, #{filePath},#{fileName}, #{type}, #{createBy}, #{createTime} ) UPDATE `catalogue_data` SET `company_id` = #{companyId}, `catalogue_id` = #{catalogueId}, `content` = #{content}, `analysis` = #{analysis}, `del_flag` = #{delFlag}, `update_by` = #{updateBy}, `update_time` = #{updateTime} WHERE `id` = #{id} UPDATE `catalogue_data_file` set `catalogue_id` = #{catalogueId}, `company_id` = #{companyId}, `name` = #{name}, `file_path` = #{filePath}, `file_name` = #{fileName}, `type` = #{type}, del_flag = #{delFlag}, update_by = #{updateBy}, update_time = #{updateTime} where id = #{id}