From e0956de7a5b83811748533223d00d8675aed535f Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 27 Oct 2025 16:55:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=E4=B8=BA=E9=94=80=E5=94=AE=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E6=B7=BB=E5=8A=A0=E5=AD=90=E4=BA=A7=E5=93=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在SaleProduct结构体中新增Children字段以支持子产品- 定义SaleProductAdd类型用于子产品列表 - 扩展现有数据模型以适应产品层级关系 --- erp/shipment/saleProduct.go | 1 + 1 file changed, 1 insertion(+) diff --git a/erp/shipment/saleProduct.go b/erp/shipment/saleProduct.go index d5453af..59f29e5 100644 --- a/erp/shipment/saleProduct.go +++ b/erp/shipment/saleProduct.go @@ -169,6 +169,7 @@ type SaleProductAdd struct { ContainerNumber string // 箱号 SealNumber string // 封号 PurchaseProducts []PurchaseProduct // 采购商品 + Children []*SaleProductAdd // 子产品 } type PurchaseProduct struct { PurchaseProductId int64 // 采购商品id