insert into patrol_check_plan(sectionId,count,check_begin_time,check_end_time,create_time,create_id)
values
(#{sectionId},#{count},#{checkBeginTime},#{checkEndTime},#{createTime},#{createId})
update patrol_check_plan p
set
p.sectionId = #{sectionId},
p.count = #{count},
p.check_begin_time = #{checkBeginTime},
p.check_end_time = #{checkEndTime}
where p.id = #{id}