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