INSERT INTO `catalogue_data` ( `company_id`, `catalogue_id`, `content`, `analysis`, `create_by`, `create_time` ) VALUES ( #{companyId}, #{catalogueId}, #{content}, #{analysis}, #{createBy}, #{createTime} ) INSERT INTO `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} ) INSERT INTO `catalogue` ( `parent_id`, `number`, `mess`, `type`,`company_id` ) VALUES ( #{parentId}, #{number}, #{mess}, #{type}, #{companyId} ) UPDATE `catalogue_data` `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` `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} UPDATE catalogue_data_file set del_flag = #{delFlag} ,update_by = #{updateBy} , update_time=#{updateTime} where company_id =#{companyId} and catalogue_id = #{catalogueId} DELETE FROM catalogue_data_file WHERE id = #{id}