Files
Web_HotelServices_Prod/问题.txt
2025-11-26 11:18:26 +08:00

52 lines
1.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
TBL_RCU_CONN_INFORCU 连接信息表) 目前这张表没有任何数据 是否在线标识
TBL_RCU_ERR_LISTRCU 缓存表) 目前这张表没有任何数据 有最后一次通讯时间
问题是否需要在TBL_RCU_ERR_LISTRCU 缓存表)添加一个字段标识最后通讯时间
房间状态 空房 16 出租中 2 退房中 8 待租 4
巫工侧发起同步使用场景
http://hogoodhotel.com/里面主机绑定,工具同步
会调用我们的apihttp://rcu-data.blv-oa.com/OTApi/SyncData?Pwd=fs%sd 进行同步。
调用堆栈
apihttp://rcu-data.blv-oa.com/OTApi/SyncData?Pwd=fs%sd
public IActionResult SyncData(string Pwd)
public static bool SYNC_DATA_ALL()
里面同步了:
巫工侧 mysql侧
酒店表 tb_Sys_Hotels tbl_hotel_basic_info
酒店组表
房型表
主机表
季节表
酒店季节表
用到的数据表:
new_table_update_time_mark mysql侧所有表的最后更新时间
酒店表同步:
0. 取到 mysql 的 blv_rcu_db 数据库上下文
巫工原始数据
ID HotelID Month1-12 IsDeleted
我们的数据
ID HOTELID HOTELID_OLD MONTH1-12
从巫工原始数据拉到数据 tbl_hotel_season_data
定位我们的数据 room_old_data select * from TBL_HOTEL_SEASON where ID in (巫工ID集合)
对每一个巫工数据
要么更新我们的同ID数据
要么插入到我们的数据库