From b341d97d96ef6962b1a54d072bd741b91e7d22f8 Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 26 Sep 2024 17:02:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp/sale/product.go | 4 ++++ erp/shipment/saleProduct.go | 2 ++ 2 files changed, 6 insertions(+) diff --git a/erp/sale/product.go b/erp/sale/product.go index 3bd541b..9c0b38c 100644 --- a/erp/sale/product.go +++ b/erp/sale/product.go @@ -73,6 +73,7 @@ type ProductListItem struct { SaleCreatedAt *time.Time `json:"saleCreatedAt"` PurchasedCount int64 `json:"purchasedCount"` ShipmentCount int64 `json:"shipmentCount"` + ShipmentdCount int64 `json:"shipmentdCount"` } // List @TITLE 产品列表 @@ -119,6 +120,9 @@ type ProductItem struct { CurrencySymbol string `json:"currencySymbol"` CurrencyRate decimal.Decimal `json:"currencyRate"` PurchaseCount int64 `json:"purchaseCount"` + PurchasedCount int64 `json:"purchasedCount"` + ShipmentCount int64 `json:"shipmentCount"` + ShipmentdCount int64 `json:"shipmentdCount"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` Children []*ProductItem `json:"children"` diff --git a/erp/shipment/saleProduct.go b/erp/shipment/saleProduct.go index 0905ba8..3280393 100644 --- a/erp/shipment/saleProduct.go +++ b/erp/shipment/saleProduct.go @@ -64,6 +64,8 @@ type SaleProductItem struct { SealNumber string `json:"sealNumber"` PurchasePrice decimal.Decimal `json:"purchasePrice"` PurchaseAmount decimal.Decimal `json:"purchaseAmount"` + IsSerial int64 `json:"isSerial"` + IsCustoms int64 `json:"isCustoms"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` }