select id,
hotel_homestay_id,
level1_name,
level2_name,
image,
weekday_price,
weekend_price,
limited_live_person,
cancel_rule_type,
cancel_rule_content,
area,
bed_type,
window,
wifi,
floor,
breakfast,
del_flag,
dept_id,
create_by,
create_time,
update_by,
update_time,
remark,
submit_time,
audit_status,
audit_time,
reject_reason,
grounding,
flag,
sort
from zdy_hotel_homestay_room_classify rc
insert into zdy_hotel_homestay_room_classify
hotel_homestay_id,
level1_name,
level2_name,
image,
weekday_price,
weekend_price,
limited_live_person,
cancel_rule_type,
cancel_rule_content,
area,
bed_type,
window,
wifi,
floor,
breakfast,
del_flag,
dept_id,
create_by,
create_time,
update_by,
update_time,
remark,
submit_time,
audit_status,
audit_time,
reject_reason,
grounding,
flag,
sort,
#{hotelHomestayId},
#{level1Name},
#{level2Name},
#{image},
#{weekdayPrice},
#{weekendPrice},
#{limitedLivePerson},
#{cancelRuleType},
#{cancelRuleContent},
#{area},
#{bedType},
#{window},
#{wifi},
#{floor},
#{breakfast},
#{delFlag},
#{deptId},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{submitTime},
#{auditStatus},
#{auditTime},
#{rejectReason},
#{grounding},
#{flag},
#{sort},
update zdy_hotel_homestay_room_classify
hotel_homestay_id =
#{hotelHomestayId},
level1_name =
#{level1Name},
level2_name =
#{level2Name},
image =
#{image},
weekday_price =
#{weekdayPrice},
weekend_price =
#{weekendPrice},
limited_live_person =
#{limitedLivePerson},
cancel_rule_type =
#{cancelRuleType},
cancel_rule_content =
#{cancelRuleContent},
area =
#{area},
bed_type =
#{bedType},
window =
#{window},
wifi =
#{wifi},
floor =
#{floor},
del_flag =
#{delFlag},
dept_id =
#{deptId},
create_by =
#{createBy},
create_time =
#{createTime},
update_by =
#{updateBy},
update_time =
#{updateTime},
remark =
#{remark},
submit_time=
#{submitTime},
audit_status=
#{auditStatus},
audit_time=
#{auditTime},
reject_reason=
#{rejectReason},
grounding = #{grounding},
flag = #{flag},
sort = #{sort},
where id = #{id}
delete
from zdy_hotel_homestay_room_classify
where id = #{id}
update zdy_hotel_homestay_room_classify set del_flag = '1' where id in
#{id}
update zdy_hotel_homestay_room_classify set del_flag = '1' where hotel_homestay_id in
#{hotelHomestayId}