select
yj_appreciate.id,
yj_appreciate.title,
yj_appreciate.image,
yj_appreciate.read_num,
yj_appreciate.start_time,
yj_appreciate.content,
yj_appreciate.status,
yj_appreciate.modify_time,
yj_appreciate.dept_id
from yj_appreciate
left join sys_dept on yj_appreciate.dept_id = sys_dept.dept_id
insert into yj_appreciate
id,title,image,read_num,start_time,content,status,modify_time,dept_id,#{id},#{title},#{image},#{readNum},#{startTime},#{content},#{status},#{modifyTime},#{deptId},
update yj_appreciate
title = #{title},image = #{image},read_num = #{readNum},start_time = #{startTime},content = #{content},status = #{status},modify_time = #{modifyTime},dept_id = #{deptId},
where id = #{id}
delete from yj_appreciate where id = #{id}
delete from yj_appreciate where id in
#{id}