-- 提供已封装的SDK 另外一个任务完成
-- Allergo授权
select a.* from RB_OrderSource_EbayAmazonAPI a with (nolock)
inner join RB_OrderSource b with (nolock) on a.CustomerID=b.CustomerID and a.OrderSourceID=b.ID
where a.CustomerID=1 and b.OrderSourceType=67 and b.IsActive=1 and b.IsDelete=0
-- 增加一个店铺下载日志
-- 存储数据 GetOrderInfoListResponsesUpdateAt
任务描述
需求描述
1.1. 背景
背景:针对Allegro 业务新增退款及费用明细进行下载存储,供后期业务场景使用,仅下载好数据即可不做业务变化调整。
1.2. 验收目标
1.新增RB_Allergo_Payment_operations_history,数据表,并有数据显示。
2.新增RB_Allergo_History of billing operations,数据表,并有数据显示。
2. 功能设计
1. 新增RB_Allergo_Payment_operations_history
2. 新增RB_Allergo_History_of_billing_operations
2.1 RB_Allergo_Payment_operations_history
2.1.1 功能点描述:
其他描述:
Payment operations history
存储数据内容:
ordersourceid
wallet.type string
group": "INCOME",
paymentOperator": "PAYU",
paymentOperator_type": "AVAILABLE",
balance_amount": "123.45",
balance_currency": "PLN"
fund_value": {
fund_amount": "123.45",
fund_currency": "PLN"
date_occurredAt": "2019-05-08T09:45:00.818Z"
updatetime
count": 50,
totalCount": 123
逻辑描述:每日下前一日,各来源渠道数据,按日期下载。不更新替换。
请求参:日期
新增RB_Allergo_History_of_billing_operations
2.2 RB_Allergo_History_of_billing_operations
2.2.1 功能点描述:
存储数据内容:
ordersourceid
"occurredAt": "2019-05-08T09:45:32.818Z",
"type_id": "LIS",
"name"Listing fee"
"offer_id": "12345678",
offer_name": "offer name"
"amount": "100.00",
"currency": "PLN"
"tax_percentage": "0",
"tax_annotation": "OUT_OF_SCOPE"
"balance": {
"balance_amount": "100.00",
"balance_currency": "PLN"
"order_id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
逻辑描述:每日下前一日,各来源渠道数据,按日期下载。不更新替换。
请求参:日期


验收标准
暂无

1.每日下前一日,各来源渠道数据,按日期下载。不更新替换。
2.授权:
-- Allergo授权
select a.* from RB_OrderSource_EbayAmazonAPI a with (nolock)
inner join RB_OrderSource b with (nolock) on a.CustomerID=b.CustomerID and a.OrderSourceID=b.ID
where a.CustomerID=1 and b.OrderSourceType=67 and b.IsActive=1 and b.IsDelete=0
3.数据表:
select * from RB_Allergo_Payment_Operations_History WITH(NOLOCK)
select * from RB_Allergo_History_Of_Billing_Operations WITH(NOLOCK)
下载日志:select * from RB_Allergo_RequestLog WITH(NOLOCK)
4.测试:
5.sql脚本:
6.代码提交记录: