初始化
This commit is contained in:
51
问题.txt
Normal file
51
问题.txt
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
TBL_RCU_CONN_INFO(RCU 连接信息表) 目前这张表没有任何数据 是否在线标识
|
||||
TBL_RCU_ERR_LIST(RCU 缓存表) 目前这张表没有任何数据 有最后一次通讯时间
|
||||
|
||||
问题:是否需要在TBL_RCU_ERR_LIST(RCU 缓存表)添加一个字段标识最后通讯时间
|
||||
|
||||
|
||||
房间状态 空房 16 出租中 2 退房中 8 待租 4
|
||||
|
||||
|
||||
|
||||
巫工侧发起同步使用场景
|
||||
http://hogoodhotel.com/里面主机绑定,工具同步
|
||||
会调用我们的api:http://rcu-data.blv-oa.com/OTApi/SyncData?Pwd=fs%sd 进行同步。
|
||||
|
||||
调用堆栈
|
||||
api:http://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数据
|
||||
要么插入到我们的数据库
|
||||
Reference in New Issue
Block a user