From 55be91b6e66ce6b2db9cca2b6d1aeb0720fad7bb Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 13 Jul 2026 13:46:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(sale):=20=E6=B7=BB=E5=8A=A0=E5=85=AC?= =?UTF-8?q?=E5=8F=B8=E6=88=90=E6=9C=AC=E5=AD=97=E6=AE=B5=E5=88=B0=E9=94=80?= =?UTF-8?q?=E5=94=AE=E6=95=88=E7=9B=8A=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 SaleBenefit 结构体中新增 companyCost 字段 - 为 CompanyCost 字段添加 JSON 标签映射 - 为 CompanyCost 字段添加结构体标签注释 - 保持与其他成本字段的一致性设计 --- erp/sale/benefit.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erp/sale/benefit.go b/erp/sale/benefit.go index d939bb9..c321059 100644 --- a/erp/sale/benefit.go +++ b/erp/sale/benefit.go @@ -67,6 +67,7 @@ type ReplyBenefitInfo struct { DomesticShippingCost decimal.Decimal `json:"domesticShippingCost"` DocumentCost decimal.Decimal `json:"documentCost"` OtherCost decimal.Decimal `json:"otherCost"` + CompanyCost decimal.Decimal `json:"companyCost"` TotalSaleAmount decimal.Decimal `json:"totalSaleAmount"` ForeignShippingCost decimal.Decimal `json:"foreignShippingCost"` BankFees decimal.Decimal `json:"bankFees"` @@ -97,6 +98,7 @@ type ArgsBenefitEdit struct { SaleId int64 // 销售合同 DomesticShippingCost decimal.Decimal // 国内运杂费 DocumentCost decimal.Decimal // 单证费 + CompanyCost decimal.Decimal // 其他费用 TotalSaleAmount decimal.Decimal // 出口总价 ForeignShippingCost decimal.Decimal // 国外运杂费 BankFees decimal.Decimal // 银行手续费