任务描述
暂无
需求描述

背景:采集源数据已爬取,需在ERP 库对接采集数据(亚马逊)


需求:

.net framework4组件包:Zhcxkj.GatherCenter.OpenSDK.Erp

1、构造初始化:var dbService= new SdkDbService(string database, bool isPubAccess = false, bool isLocalDev = false)

2、通过SdkDbService类的实例dbService可操作DB,orm采用sqlsugar。


4 类结构(ERP 关联带出渠道ID): 平台余额,亚马逊账单汇总,亚马交易明细 ,亚马交易结算

平台余额 (ERP 关联带出渠道ID)

http://139.9.47.106:8001/PaymentBalances

class PaymentBalance {

    Id: number;

    /** 账号名称 */

    PartnerName: string;

    /** 国家代码 */

    CountryCode: string;

    /** 创建日期 */

    Date: string;

    /** 账户类型 PAYABLE:标准订单 INVOICING:发票订单 */

    AccountType: string;

    /** 订单类型:Standard Orders or  Invoiced Orders*/

    MarketplaceName: string;

    /**总余额币种 */

    TotalUnit: string;

    /**总余额 */

    TotalAmount: number;

    /**当前可用资金币种 */

    NowUnit: string;

    /**当前可用资金金额 */

    NowAmount: number;

    /**结算结束时可用资金币种 */

    EndUnit: string;

    /**结算结束时可用资金金额 */

    EndAmount: number;

    /** 卖家ID */

    SellerId: string;

    /** 市场ID */

    MarketplaceId: string;

}


亚马逊账单汇总(ERP 关联带出渠道ID)

http://139.9.47.106:8001/PaymentSummaries


export interface PaymentSummary {

    Id: number;

    /** 账号名称 */

    PartnerName: string;

    /**国家代码 */

    CountryCode: string;

    /** id */

    Identifier: string;

    /** 账户类型 PAYABLE:标准订单 INVOICING:发票订单 */

    Kind: PaymentAccountKind;

    /**开始时间 */

    StartTime: Date;

    /**结束时间 */

    EndTime?: Date;

    /** 币种 */

    Unit: string;

    /**状态 */

    Status: string;

    /** 转账明细记录 */

    Transfers: PaymentTransfer[];

    /** 总收入 */

    TotalAmount: number;

    /** 净收入 */

    NetProceedsAmount: number;

    /** 销售额 */

    SalesAmount: number;

    /** 支出 */

    ExpensesAmount: number;

    /** 期初余额 */

    BeginningBalanceAmount: number;

    /** 账户级别的预留金额 */

    AccountLevelReserveAmount: number;

    /** 退款金额 */

    RefundsAmount: number;

    /** 卖家ID */

    SellerId: string;

    /** 市场ID */

    MarketplaceId: string;

}


export interface PaymentTransfer {


    Id: number;

    /**银行转账编号 */

    Identifier: string;

    /** 转账状态 */

    PayoutStatus: string;

    /** 转账发起日期 */

    InitiatedTime: Date;

    /** 转账完成日期 */

    CompletionTime?: Date;

    /**币种 */

    Unit: string;

    /**金额 */

    Amount: number;

    /**错误信息 */

    ErrorCode: string;

    /** 账户尾号 */

    AccountTail: string

}


亚马交易明细(ERP 关联带出渠道ID)

http://139.9.47.106:8001/PaymentReports

export interface PaymentReport {


    Id: number;

    /** 账号名称 */

    PartnerName: string;

    /**国家代码 */

    CountryCode: string;

    /** 卖家ID */

    SellerId: string;

    /** 市场ID */

    MarketplaceId: string;

    /**日期 */

    Date: Date;

    /**结算id */

    SettlementId: string;

    /**结算类型*/

    Type?: string;

    /**平台订单号*/

    OrderId?: string;

    /**渠道SKU*/

    SKU?: string;

    /**描述*/

    Description?: string;

    /**数量*/

    Quantity?: number;

    /**区域编号*/

    Marketplace?: string;

    /**账号类型*/

    AccountType?: string;

    /**Fulfillment*/

    Fulfillment?: string;

    /**订单国家*/

    OrderCity?: string;

    /**订单状态*/

    OrderState?: string;

    /**OrderPostal*/

    OrderPostal?: string;

    /**税费类型*/

    TaxCollectionModel?: string;

    /**商品销售收入*/

    ProductSales?: number;

    /**商品税*/

    ProductSalesTax?: number;

    /**运费费*/

    ShippingCredits?: number;

    /**运费税*/

    ShippingCreditsTax?: number;

    /**包装费*/

    GiftWrapCredits?: number;

    /**包装税*/

    GiftwrapCreditsTax?: number;

    /**COSTPOINTS*/

    CostPoints?: number;

    /**优惠金额*/

    PromotionalRebates?: number;

    /**优惠税*/

    PromotionalRebatesTax?: number;

    /**销售税*/

    SalesTaxCollected?: number;

    /**MarketplaceWithheldTax*/

    MarketplaceWithheldTax?: number;

    /**LowValueGoods*/

    LowValueGoods?: number;

    /**标签费*/

    TotalSalesTaxLiable?: number;

    /** TCS_CGST */

    TCS_CGST?: number;

    /** TCS_SGST */

    TCS_SGST?: number;

    /** TCS_IGST */

    TCS_IGST?: number;

    /** SellingFees */

    SellingFees?: number;

    /**亚马逊平台运费*/

    FbaFees?: number;

    /**OtherTransactionFees*/

    OtherTransactionFees?: number;

    /**其他 */

    Other?: number;

    /** Total */

    Total?: number;

}

亚马交易结算 (ERP 关联带出渠道ID)

http://139.9.47.106:8001/PaymentSettlement

export interface PaymentStatementsReport {

    /** 卖家ID */

    SellerId: string;

    /** 市场ID */

    MarketplaceId: string;

    /** 账号名称 */

    PartnerName: string;

    /**国家代码 */

    CountryCode: string;

    /**结算id */

    SettlementId: string;

    /** 开始日期 */

    StartDate?: Date;

    /** 结束日期 */

EndDate?: Date;

/** 划款日期 */

    DepositDate?: Date;

    /** 总金额 */

    TotalAmount?: number;

     /** 币种 */

    Currency?: string;

    /** 结算明细 */

    items: PaymentStatementsDetailsReport[];

    /** 账户类型 PAYABLE:标准订单 INVOICING:发票订单 */

    Kind: string;

}

export interface PaymentStatementsDetailsReport {

    /**结算id */

    SettlementId: string;

    /**TransactionType*/

    TransactionType?: string;

    /**平台订单号*/

    OrderId?: string;

    /**MerchantOrderId*/

    MerchantOrderId?: string;

    /**调整类ID*/

    AdjustmentId?: string;

    /**店铺类ID*/

    ShipmentId?: string;

    /**区域名称*/

    MarketplaceName?: string;

    /**费用类型*/

    AmountType?: string;

    /**费用描述*/

    AmountDescription?: string;

    /**费用金额*/

    Amount?: number;

    /**FulfillmentId*/

    FulfillmentId?: string;

    /**PostedDate*/

    PostedDate?: Date;

    /**PostedDateTime*/

    PostedDateTime?: Date;

    /**OrderItemCode*/

    OrderItemCode?: string;

    /** MerchantOrderItemId */

    MerchantOrderItemId?: string;

    /**AdjustmentItemId*/

    MerchantAdjustmentItemId?: string;

    /**渠道SKU */

    Sku?: string;

    /**渠道SKU*/

    QuantityPurchased?: string;

    /**优惠ID*/

    PromotionId?: string;

}



对接报告类型:
验收标准
暂无
历史记录  
  1. 2022-04-19 18:05:17, 由 林鸿贵 创建。
  2. 2022-04-25 13:44:01, 由 林鸿贵 编辑。
    修改了 最初预计,旧值为 "32",新值为 "5"。
    修改了 预计剩余,旧值为 "32",新值为 "5"。
  3. 2022-04-26 14:40:23, 由 林鸿贵 添加备注。

    测试环境:主干1商户

    验证场景:

    一、ERP数据库新增表

    SELECT COUNT(ID) from RB_Crawler_Amazon_PaymentTransfer
    SELECT COUNT(ID) from RB_Crawler_Amazon_PaymentSummary
    SELECT count(id) from RB_Crawler_Amazon_PaymentBalance
    SELECT count(id) from RB_Crawler_Amazon_PaymentReport
    SELECT count(id) from RB_Crawler_Amazon_PaymentStatement
    SELECT count(id) from RB_Crawler_Amazon_PaymentStatementDetail

    二、 查看表字段是否与需求要求一致

    一致



    三、查看点击服务按钮是否正常拉取采集库的亚马逊数据

    四、验证采集的数据是否有遗漏

  4. 2022-04-26 14:40:30, 由 林鸿贵 完成。
    修改了 总计消耗,旧值为 "0",新值为 "3"。
    修改了 实际完成,旧值为 "",新值为 "2022-04-26 14:40:25"。
    修改了 任务状态,旧值为 "wait",新值为 "done"。
    修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2022-04-26 14:40:30"。
    修改了 预计剩余,旧值为 "5",新值为 "0"。
    修改了 由谁完成,旧值为 "",新值为 "linhonggui"。
  5. 2022-04-26 14:40:33, 由 林鸿贵 关闭。
    修改了 任务状态,旧值为 "done",新值为 "closed"。
    修改了 指派给 ,旧值为 "linhonggui",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "linhonggui"。
    修改了 关闭时间,旧值为 "0000-00-00 00:00:00",新值为 "2022-04-26 14:40:33"。
    修改了 关闭原因,旧值为 "",新值为 "done"。
所属迭代 【智汇】产品部 4月 第2 版本(2022年)
所属模块 /
相关需求 采集数据源ERP关系型数据对接存储
指派给 Closed 于 2022-04-26 14:40:33
任务类型 测试
任务标签 初始
开发组
任务状态 已关闭
进度 100%
优先级 P2
关键词
抄送给
由谁创建 林鸿贵 于 2022-04-19 18:05:17
由谁完成 林鸿贵 于 2022-04-26 14:40:25
由谁取消 暂无
由谁关闭 林鸿贵 于 2022-04-26 14:40:33
关闭原因 已完成
最后编辑 林鸿贵 于 2022-04-26 14:40:33
团队 最初预计 总计消耗 预计剩余
工时信息
最初预计 5工时
总计消耗 3工时
预计剩余 0工时
预计开始 0000-00-00
实际开始 2022-04-26
截止日期 2022-04-28