select id,
category_id,
content_type,
image_url,
video_url,
content_title,
content_img,
content_detail,
source,
source_url,
original,
author,
editor,
summary,
status,
publish_date,
offline_date,
is_accessory,
accessory_url,
remark,
del_flag,
create_time,
create_by,
update_time,
update_by,
link_type,
link,
count
from cms_content
insert into cms_content
id,
category_id,
content_type,
content_title,
content_img,
content_detail,
source,
source_url,
original,
author,
editor,
summary,
status,
publish_date,
offline_date,
is_accessory,
accessory_url,
remark,
del_flag,
create_time,
create_by,
update_time,
update_by,
link_type,
link,
image_url,
video_url,
#{id},
#{categoryId},
#{contentType},
#{contentTitle},
#{contentImg},
#{contentDetail},
#{source},
#{sourceUrl},
#{original},
#{author},
#{editor},
#{summary},
#{status},
#{publishDate},
#{offlineDate},
#{isAccessory},
#{accessoryUrl,jdbcType=OTHER,typeHandler=com.ruoyi.system.handler.MysqlTypeHandler},
#{remark},
#{delFlag},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{linkType},
#{link},
#{imageUrl,jdbcType=OTHER,typeHandler=com.ruoyi.system.handler.MysqlTypeHandler},
#{videoUrl,jdbcType=OTHER,typeHandler=com.ruoyi.system.handler.MysqlTypeHandler},
update cms_content
category_id = #{categoryId},
content_type = #{contentType},
content_title = #{contentTitle},
content_img = #{contentImg},
content_detail = #{contentDetail},
source = #{source},
source_url = #{sourceUrl},
original = #{original},
author = #{author},
editor = #{editor},
summary = #{summary},
status = #{status},
publish_date = #{publishDate},
offline_date = #{offlineDate},
is_accessory = #{isAccessory},
accessory_url = #{accessoryUrl,jdbcType=OTHER,typeHandler=com.ruoyi.system.handler.MysqlTypeHandler},
remark = #{remark},
del_flag = #{delFlag},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
link_type = #{linkType},
link = #{link},
image_url = #{imageUrl,jdbcType=OTHER,typeHandler=com.ruoyi.system.handler.MysqlTypeHandler},
video_url = #{videoUrl,jdbcType=OTHER,typeHandler=com.ruoyi.system.handler.MysqlTypeHandler},
where id = #{id}
update cms_content set count = count + 1 where id = #{id}
delete
from cms_content
where id = #{id}
delete from cms_content where id in
#{id}