From 9aba2baa8c3c9bbaa307b5c622947d5fa56cc260 Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 11 Sep 2025 17:28:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(service/erp/shipment/modify/saleProduct):?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E5=8C=85=E8=A3=85=E9=87=8D=E9=87=8F?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在saleProduct结构体中添加了PackageWeight字段,用于记录包装重量。 同时修正了导入包的顺序,确保代码整洁。 --- erp/shipment/modify/saleProduct.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erp/shipment/modify/saleProduct.go b/erp/shipment/modify/saleProduct.go index c3abb2b..74ab9ee 100644 --- a/erp/shipment/modify/saleProduct.go +++ b/erp/shipment/modify/saleProduct.go @@ -2,9 +2,10 @@ package modify import ( "context" + "time" + "git.kumo.work/shama/service/client" "github.com/shopspring/decimal" - "time" ) type saleProduct struct { @@ -23,6 +24,7 @@ type SaleProductItem struct { CustomSerial string `json:"customSerial"` PackageDescription string `json:"packageDescription"` PackageEngDescription string `json:"packageEngDescription"` + PackageWeight decimal.Decimal `json:"packageWeight"` EngName string `json:"engName"` Name string `json:"name"` CustomsName string `json:"customsName"` @@ -178,6 +180,7 @@ type SaleProductEdit struct { CustomSerial string // 客户货号 PackageDescription string // 包装 PackageEngDescription string // 包装英文描述 + PackageWeight decimal.Decimal // 包装重量 Name string // 中文品名 EngName string // 英文品名 CustomsSerial string // 海关编码