select id, hotel_homestay_id, hotel_homestay_room_classify_id, duration, price, cancel_rule_type, cancel_rule_content, del_flag, dept_id, create_by, create_time, update_by, update_time, remark from zdy_hotel_homestay_hour_room hr insert into zdy_hotel_homestay_hour_room hotel_homestay_id, hotel_homestay_room_classify_id, duration, price, cancel_rule_type, cancel_rule_content, del_flag, dept_id, create_by, create_time, update_by, update_time, remark, #{hotelHomestayId}, #{hotelHomestayRoomClassifyId}, #{duration}, #{price}, #{cancelRuleType}, #{cancelRuleContent}, #{delFlag}, #{deptId}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update zdy_hotel_homestay_hour_room hotel_homestay_id = #{hotelHomestayId}, hotel_homestay_room_classify_id = #{hotelHomestayRoomClassifyId}, duration = #{duration}, price = #{price}, cancel_rule_type = #{cancelRuleType}, cancel_rule_content = #{cancelRuleContent}, del_flag = #{delFlag}, dept_id = #{deptId}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} delete from zdy_hotel_homestay_hour_room where id = #{id} update zdy_hotel_homestay_hour_room set del_flag = '1' where id in #{id} update zdy_hotel_homestay_hour_room set del_flag = '1' where hotel_homestay_id in #{hotelHomestayId}