From e2d77a5d3f82af2c2381f46f9b79886abe2373c6 Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 28 Oct 2026 10:24:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(product):=20=E6=96=B0=E5=A2=9E=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E8=A3=85=E7=AE=B1=E6=95=B0=E9=87=8F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在销售产品结构体中添加 BoxAmount 字段 - 使用 decimal.Decimal 类型支持精确数值计算 - 字段对应 JSON 键名为 boxAmount --- erp/sale/product.go | 1 + 1 file changed, 1 insertion(+) diff --git a/erp/sale/product.go b/erp/sale/product.go index b823baa..da24ff3 100644 --- a/erp/sale/product.go +++ b/erp/sale/product.go @@ -280,6 +280,7 @@ type ReplyProductInfo struct { PurchasedCount int64 `json:"purchasedCount"` ShipmentCount int64 `json:"shipmentCount"` ShippedCount int64 `json:"shippedCount"` + BoxAmount decimal.Decimal `json:"boxAmount"` AccountingCount int64 `json:"accountingCount"` AccountedCount int64 `json:"accountedCount"` CreatedAt *time.Time `json:"createdAt"`