|
|
@ -149,3 +149,53 @@ func (o *order) StockOutOrderList(ctx context.Context, args ArgsStockOutOrderLis
|
|
|
|
err = xClient.Call(ctx, "StockOutOrderList", args, &result)
|
|
|
|
err = xClient.Call(ctx, "StockOutOrderList", args, &result)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type JdOrderItem struct {
|
|
|
|
|
|
|
|
CustomerName string `json:"customerName"`
|
|
|
|
|
|
|
|
OrderSn string `json:"orderSn"`
|
|
|
|
|
|
|
|
OrderSubSn string `json:"orderSubSn"`
|
|
|
|
|
|
|
|
SupplierOrderSn string `json:"supplierOrderSn"`
|
|
|
|
|
|
|
|
OrderStatus uint `json:"orderStatus"`
|
|
|
|
|
|
|
|
CreatedAt int64 `json:"createdAt"`
|
|
|
|
|
|
|
|
LadingBillAt int64 `json:"ladingBillAt"`
|
|
|
|
|
|
|
|
StockOutAt int64 `json:"stockOutAt"`
|
|
|
|
|
|
|
|
FinishAt int64 `json:"finishAt"`
|
|
|
|
|
|
|
|
SkuName string `json:"skuName"`
|
|
|
|
|
|
|
|
SkuUpcCode string `json:"skuUpcCode"`
|
|
|
|
|
|
|
|
Specification string `json:"specification"`
|
|
|
|
|
|
|
|
Quality uint `json:"quality"`
|
|
|
|
|
|
|
|
ProduceSupplyPrice decimal.Decimal `json:"produceSupplyPrice"`
|
|
|
|
|
|
|
|
ProduceTotalPrice decimal.Decimal `json:"produceTotalPrice"`
|
|
|
|
|
|
|
|
ProduceFreightFee decimal.Decimal `json:"produceFreightFee"`
|
|
|
|
|
|
|
|
ProducePrice decimal.Decimal `json:"producePrice"`
|
|
|
|
|
|
|
|
SaleSupplyPrice decimal.Decimal `json:"saleSupplyPrice"`
|
|
|
|
|
|
|
|
SaleTotalPrice decimal.Decimal `json:"saleTotalPrice"`
|
|
|
|
|
|
|
|
SaleFreightFee decimal.Decimal `json:"saleFreightFee"`
|
|
|
|
|
|
|
|
SalePrice decimal.Decimal `json:"salePrice"`
|
|
|
|
|
|
|
|
Unit string `json:"unit"`
|
|
|
|
|
|
|
|
Tax string `json:"tax"`
|
|
|
|
|
|
|
|
ReceiverName string `json:"receiverName"`
|
|
|
|
|
|
|
|
ReceiverPhone string `json:"receiverPhone"`
|
|
|
|
|
|
|
|
ReceiverAddress string `json:"receiverAddress"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ArgsJdOrderList struct {
|
|
|
|
|
|
|
|
StartAt string
|
|
|
|
|
|
|
|
EndAt string
|
|
|
|
|
|
|
|
Page bean.Page
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ReplyJdOrderList struct {
|
|
|
|
|
|
|
|
Lists []JdOrderItem `json:"lists"`
|
|
|
|
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// JdList @Title 京东订单
|
|
|
|
|
|
|
|
func (o *order) JdList(ctx context.Context, args ArgsJdOrderList) (result ReplyJdOrderList, err error) {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(o)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
err = xClient.Call(ctx, "JdList", args, &result)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|