select oh_id, room_no, oh_weekday, opening_hours, is_occupy, is_del, rt_no
from staff_one_stop_room_opening_hours
insert into staff_one_stop_room_opening_hours
room_no,
oh_weekday,
opening_hours,
is_occupy,
is_del,
rt_no,
#{roomNo},
#{ohWeekday},
#{openingHours},
#{isOccupy},
#{isDel},
#{rtNo},
insert into staff_one_stop_room_opening_hours
room_no,
oh_weekday,
opening_hours,
is_occupy,
is_del,
rt_no,
#{item.roomNo},
#{item.ohWeekday},
#{item.openingHours},
#{item.isOccupy},
#{item.isDel},
#{item.rtNo},
update staff_one_stop_room_opening_hours
room_no = #{roomNo},
oh_weekday = #{ohWeekday},
opening_hours = #{openingHours},
is_occupy = #{isOccupy},
is_del = #{isDel},
rt_no = #{rtNo},
where oh_id = #{ohId}
update staff_one_stop_room_opening_hours
room_no = #{hours.roomNo},
oh_weekday = #{hours.ohWeekday},
opening_hours = #{hours.openingHours},
is_occupy = #{hours.isOccupy},
is_del = #{hours.isDel},
rt_no = #{hours.rtNo}
where oh_id = #{hours.ohId}
delete
from staff_one_stop_room_opening_hours
where oh_id = #{ohId}
delete from staff_one_stop_room_opening_hours where oh_id in
#{ohId}