select
notice_id,
title,
show_img,
publisher,
publication_time,
content,
create_time, create_by, update_time, update_by, del_flag, delete_time, delete_by
,publisher_id
,type
,type_two
,views_num
,prospectus
,status
,is_main
from tb_notice
insert into tb_notice
title,
show_img,
publisher,
publication_time,
content,
create_time,
create_by,
update_time,
update_by,
del_flag,
delete_time,
delete_by,
publisher_id,
type,
type_two,
views_num,
prospectus,
status,
is_main,
#{title},
#{showImg},
#{publisher},
#{publicationTime},
#{content},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{delFlag},
#{deleteTime},
#{deleteBy},
#{publisherId},
#{type},
#{typeTwo},
#{viewsNum},
#{prospectus},
#{status},
#{isMain},
update tb_notice
title = #{title},
show_img = #{showImg},
publisher = #{publisher},
publication_time = #{publicationTime},
content = #{content},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
del_flag = #{delFlag},
delete_time = #{deleteTime},
delete_by = #{deleteBy},
publisher_id = #{publisherId},
type = #{type},
type_two = #{typeTwo},
views_num = #{viewsNum},
prospectus = #{prospectus},
status = #{status},
is_main = #{isMain},
where notice_id = #{noticeId}
update tb_notice
set del_flag = 1,delete_time = now()
where notice_id = #{noticeId}
update tb_notice
set del_flag = 1,delete_time = now()
where notice_id in
#{noticeId}
update tb_notice set views_num = views_num + 1
where notice_id = #{noticeId}