feat(sale): 添加公司成本字段到销售效益结构

- 在 SaleBenefit 结构体中新增 companyCost 字段
- 为 CompanyCost 字段添加 JSON 标签映射
- 为 CompanyCost 字段添加结构体标签注释
- 保持与其他成本字段的一致性设计
This commit is contained in:
2026-07-13 13:46:33 +08:00
parent f9843fec94
commit 55be91b6e6

View File

@@ -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 // 银行手续费