From 1df23f89ca5288c1c0aa1eb14b82d91501a1eaa2 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 8 Jun 2023 14:59:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/order.go | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/supply/order.go b/supply/order.go index e827dfb..c80b6a9 100644 --- a/supply/order.go +++ b/supply/order.go @@ -139,20 +139,28 @@ type RetailOrderSearch struct { } type RetailOrderItem struct { - Id uint `json:"id"` - OrderSn string `json:"orderSn"` // 原始订单号 - OrderSubSn string `json:"orderSubSn"` // 订单号 - SourceOrderSn string `json:"sourceOrderSn"` // 供应商订单号 - SourceName string `json:"sourceName"` // 供应商名称 - CustomerName string `json:"customerName"` // 客户名称 - OrderStatus uint `json:"orderStatus"` // 订单状态 - OrderFee decimal.Decimal `json:"orderFee"` // 订单金额 - FreightFee decimal.Decimal `json:"freightFee"` // 运费 - SupplyOrderFee decimal.Decimal `json:"supplyOrderFee"` // 供应商订单金额 - PayTime int64 `json:"payTime"` // 支付时间 - FinishAt int64 `json:"finishAt"` // 完成时间 - CloseAt int64 `json:"closeAt"` // 关闭时间 - StockOutAt int64 `json:"stockOutAt"` // 发货时间 + Id uint `json:"id"` + OrderSn string `json:"orderSn"` // 原始订单号 + OrderSubSn string `json:"orderSubSn"` // 订单号 + SourceOrderSn string `json:"sourceOrderSn"` // 供应商订单号 + SourceName string `json:"sourceName"` // 供应商名称 + CustomerName string `json:"customerName"` // 客户名称 + OrderStatus uint `json:"orderStatus"` // 订单状态 + OrderFee decimal.Decimal `json:"orderFee"` // 订单金额 + FreightFee decimal.Decimal `json:"freightFee"` // 运费 + SupplyOrderFee decimal.Decimal `json:"supplyOrderFee"` // 供应商订单金额 + PayTime int64 `json:"payTime"` // 支付时间 + FinishAt int64 `json:"finishAt"` // 完成时间 + CloseAt int64 `json:"closeAt"` // 关闭时间 + StockOutAt int64 `json:"stockOutAt"` // 发货时间 + SkuIds []RetailOrderSubSkuItem `json:"skuIds"` // 商品id +} + +type RetailOrderSubSkuItem struct { + SkuId uint `json:"skuId"` // skuId + SourceSkuId uint `json:"sourceSkuId"` // 供应商skuId + Quality uint `json:"quality"` // 数量 + SupplyPrice decimal.Decimal `json:"supplyPrice"` // 采购价 } type ReplyRetailOrderLists struct {