1、采集数据同步至ERP,新建表存取对应账单数据,ERP对应账单表中新增字段:OrderSourceID
需要同步的账单数据:
交易明细
后台余额
打款汇总
打款明细-交易款项
打款明细-其他费用
打款明细-退款扣除
打款明细-赔款或暂扣货款金额
2、OrderSourceID字段取值来源
交易明细:交易明细表“Order Id”字段与 FROM RB_OrderInfo表“ClientOrderCode”匹配找出OrderSourceID
后台余额:通过 "登录账号" 与交易明细表的 "登录账号" 匹配找出Order Id ,然后用 "Order Id" 与 FROM RB_OrderInfo表 "ClientOrderCode" 匹配找出OrderSourceID
打款汇总 : 通过 "登录账号" 与交易明细表 "登录账号" 匹配找出Order Id ,然后用 "Order Id" 与 FROM RB_OrderInfo表 "ClientOrderCode" 匹配找出OrderSourceID
打款明细-交易款项 : 通过 "登录账号" 与交易明细表 "登录账号" 匹配找出Order Id ,然后用 "Order Id" 与 FROM RB_OrderInfo表 "ClientOrderCode" 匹配找出OrderSourceID
打款明细-其他费用 :通过 "登录账号" 与交易明细表 "登录账号" 匹配找出Order Id ,然后用 "Order Id" 与 FROM RB_OrderInfo表 "ClientOrderCode" 匹配找出OrderSourceID
打款明细-退款扣除 :通过 "登录账号" 与交易明细表 "登录账号" 匹配找出Order Id ,然后用 "Order Id" 与 FROM RB_OrderInfo表 "ClientOrderCode" 匹配找出OrderSourceID
打款明细-赔款或暂扣货款金额 :通过 "登录账号" 与交易明细表 "登录账号" 匹配找出Order Id ,然后用 "Order Id" 与 FROM RB_OrderInfo表 "ClientOrderCode" 匹配找出OrderSourceID
对应表关系:
{ "WishHistoryOrder","RB_Crawler_Wish_HistoryOrder" },//wish历史订单
{ "WishHomeAccountMoney","RB_Crawler_Wish_AccountMoney" },//wish首页账户余额
{ "WishHistoryPayment","RB_Crawler_Wish_HistoryPayment" },//wish历史付款
{ "WishHistoryPaymentTotalCost","RB_Crawler_Wish_HistoryPaymentTotalCost" },//wish历史付款记录交易款项明细
{ "WishHistoryPaymentFineDetailFee","RB_Crawler_Wish_HistoryPaymentFineDetailFee" },//wish历史付款记录其他费用明细
{ "WishHistoryPaymentTotalRefund","RB_Crawler_Wish_HistoryPaymentTotalRefund" },//wish历史付款退款明细
{ "WishHistoryPaymentFineDetailFine","RB_Crawler_Wish_HistoryPaymentFineDetailFine" },//wish历史付款记录赔款或暂扣货款金额明细
{ "WishHistoryPaymentTotalWithheld","RB_Crawler_Wish_HistoryPaymentTotalWithheld" } };//wish历史付款暂扣金额明细
测试服务触发地址: