select category_id, category_name, parent_id, ancestors, sort, description, create_time, update_time, create_by, update_by, status, del_flag, category_tags from cms_category
insert into cms_category
category_name,
parent_id,
ancestors,
sort,
description,
create_time,
update_time,
create_by,
update_by,
status,
del_flag,
category_tags,
#{categoryName},
#{parentId},
#{ancestors},
#{sort},
#{description},
#{createTime},
#{updateTime},
#{createBy},
#{updateBy},
#{status},
#{delFlag},
#{categoryTags},
update cms_category
category_name = #{categoryName},
parent_id = #{parentId},
ancestors = #{ancestors},
sort = #{sort},
description = #{description},
create_time = #{createTime},
update_time = #{updateTime},
create_by = #{createBy},
update_by = #{updateBy},
status = #{status},
del_flag = #{delFlag},
category_tags = #{categoryTags},
where category_id = #{categoryId}
delete from cms_category where category_id = #{categoryId}
delete from cms_category where category_id in
#{categoryId}