insert into project(scenic_id, `name`, min_play_time, max_play_time, status, template_id, create_at, update_at) values (#{scenicId}, #{name}, #{minPlayTime}, #{maxPlayTime}, #{status}, #{templateId}, now(), now()) update project set `name` = #{name}, min_play_time = #{minPlayTime}, max_play_time = #{maxPlayTime}, status = #{status}, template_id = #{templateId}, update_at = now() where id = #{id} update project set status = (CASE status WHEN 1 THEN 0 WHEN 0 THEN 1 ELSE 1 END), update_at = now() where id = #{id} delete from project where id = #{id}