select id, title, description, content_type, content_category, image_url, source, view_count, video_url, duration, article_content, author, tags, publish_date, create_time, update_time, status from knowledge_content
insert into knowledge_content
title,
description,
content_type,
content_category,
image_url,
source,
view_count,
video_url,
duration,
article_content,
author,
tags,
publish_date,
create_time,
update_time,
status,
#{title},
#{description},
#{contentType},
#{contentCategory},
#{imageUrl},
#{source},
#{viewCount},
#{videoUrl},
#{duration},
#{articleContent},
#{author},
#{tags},
#{publishDate},
#{createTime},
#{updateTime},
#{status},
insert into knowledge_image (
article_id,
url,
title,
subtitle,
color,
sort_order,
image_type,
create_time
) values (
#{articleId},
#{url},
#{title},
#{subtitle},
#{color},
#{sortOrder},
#{imageType},
sysdate()
)
update knowledge_content
title = #{title},
description = #{description},
content_type = #{contentType},
content_category = #{contentCategory},
image_url = #{imageUrl},
source = #{source},
view_count = #{viewCount},
video_url = #{videoUrl},
duration = #{duration},
article_content = #{articleContent},
author = #{author},
tags = #{tags},
publish_date = #{publishDate},
create_time = #{createTime},
update_time = #{updateTime},
status = #{status},
where id = #{id}
delete from knowledge_content where id = #{id}
delete from knowledge_content where id in
#{id}