select zhh.id, zhh.type, zhh.star, zhh.label, zhh.opening_time, zhh.decoration_time, zhh.check_in_time, zhh.leave_time, zhh.hour_room_check_in_time, zhh.hour_room_leave_time, zhh.invoice, zhh.pet, zhh.min_limited_age, zhh.important_notice, zhh.check_in_way, zhh.check_in_description, zhh.sort, zhh.store_id, sbi.grounding_status grounding, sbi.register_audit_status register_audit_status, sbi.flags flag, sbi.dept_id, sbi.create_by, sbi.create_time, sbi.update_by, sbi.update_time, sbi.remark, sbi.name, sbi.contact_phone phone, sbi.address, sbi.longitude, sbi.latitude, sbi.images cover_image, sbi.carousel_image, su.user_id sys_user_id from zdy_hotel_homestay zhh inner join zdy_store_base_info sbi on sbi.id = zhh.store_id inner join sys_user su on sbi.admin_id = su.user_id insert into zdy_hotel_homestay id, type, star, label, opening_time, decoration_time, check_in_time, leave_time, hour_room_check_in_time, hour_room_leave_time, invoice, pet, min_limited_age, important_notice, check_in_way, check_in_description, store_id, #{storeId}, #{type}, #{star}, #{label}, #{openingTime}, #{decorationTime}, #{checkInTime}, #{leaveTime}, #{hourRoomCheckInTime}, #{hourRoomLeaveTime}, #{invoice}, #{pet}, #{minLimitedAge}, #{importantNotice}, #{checkInWay}, #{checkInDescription}, #{storeId}, update zdy_hotel_homestay type = #{type}, star = #{star}, label = #{label}, opening_time = #{openingTime}, decoration_time = #{decorationTime}, check_in_time = #{checkInTime}, leave_time = #{leaveTime}, hour_room_check_in_time = #{hourRoomCheckInTime}, hour_room_leave_time = #{hourRoomLeaveTime}, invoice = #{invoice}, pet = #{pet}, min_limited_age = #{minLimitedAge}, important_notice = #{importantNotice}, check_in_way = #{checkInWay}, check_in_description = #{checkInDescription}, check_in_description = #{checkInDescription}, sort = #{sort} where id = #{id} delete from zdy_hotel_homestay where id = #{id} update sys_user set del_flag = 2 where user_id in #{id} update zdy_hotel_homestay type = #{type}, star = #{star}, label = #{label}, opening_time = #{openingTime}, decoration_time = #{decorationTime}, check_in_time = #{checkInTime}, leave_time = #{leaveTime}, hour_room_check_in_time = #{hourRoomCheckInTime}, hour_room_leave_time = #{hourRoomLeaveTime}, invoice = #{invoice}, pet = #{pet}, min_limited_age = #{minLimitedAge}, important_notice = #{importantNotice}, check_in_way = #{checkInWay}, check_in_description = #{checkInDescription}, sort = #{sort}, store_id = #{storeId} where store_id = #{storeId}