feat(erp): 添加模具和父级装运销售产品ID字段到产品项结构

- 添加 Mold 字段用于标识模具信息
- 添加 ParentShipmentSaleProductID 字段用于关联父级装运销售产品
- 重新排列结构体字段顺序以保持一致性
- 维护所有现有字段的完整功能和数据映射关系
This commit is contained in:
2026-08-11 14:14:02 +08:00
parent 67cd17a0ef
commit b8db251e56

View File

@@ -11,37 +11,39 @@ type product struct {
} }
type ProductItem struct { type ProductItem struct {
Id int64 `json:"id"` Id int64 `json:"id"`
MixedFlag int64 `json:"mixedFlag"` MixedFlag int64 `json:"mixedFlag"`
Serial string `json:"serial"` Mold int64 `json:"mold"`
CustomSerial string `json:"customSerial"` ParentShipmentSaleProductID int64 `json:"parentShipmentSaleProductID"`
Po string `json:"po"` Serial string `json:"serial"`
Name string `json:"name"` CustomSerial string `json:"customSerial"`
BlEngName string `json:"blEngName"` Po string `json:"po"`
ShipmentCount int64 `json:"shipmentCount"` Name string `json:"name"`
InnerNum *int64 `json:"innerNum"` BlEngName string `json:"blEngName"`
InnerBoxCount *int64 `json:"innerBoxCount"` ShipmentCount int64 `json:"shipmentCount"`
OuterNum *int64 `json:"outerNum"` InnerNum *int64 `json:"innerNum"`
OuterBoxCount int64 `json:"outerBoxCount"` InnerBoxCount *int64 `json:"innerBoxCount"`
CustomsSerial string `json:"customsSerial"` OuterNum *int64 `json:"outerNum"`
CustomsName string `json:"customsName"` OuterBoxCount int64 `json:"outerBoxCount"`
CustomsDetail string `json:"customsDetail"` CustomsSerial string `json:"customsSerial"`
CustomsMeasureUnit string `json:"customsMeasureUnit"` CustomsName string `json:"customsName"`
ShipmentCountUnit string `json:"shipmentCountUnit"` CustomsDetail string `json:"customsDetail"`
CustomsGrossWeight decimal.Decimal `json:"customsGrossWeight"` CustomsMeasureUnit string `json:"customsMeasureUnit"`
TotalCustomsGrossWeight decimal.Decimal `json:"totalCustomsGrossWeight"` ShipmentCountUnit string `json:"shipmentCountUnit"`
CustomsNetWeight decimal.Decimal `json:"customsNetWeight"` CustomsGrossWeight decimal.Decimal `json:"customsGrossWeight"`
TotalCustomsNetWeight decimal.Decimal `json:"totalCustomsNetWeight"` TotalCustomsGrossWeight decimal.Decimal `json:"totalCustomsGrossWeight"`
DomesticSupply string `json:"domesticSupply"` CustomsNetWeight decimal.Decimal `json:"customsNetWeight"`
FactoryName string `json:"factoryName"` TotalCustomsNetWeight decimal.Decimal `json:"totalCustomsNetWeight"`
SalePrice decimal.Decimal `json:"salePrice"` DomesticSupply string `json:"domesticSupply"`
SaleAmount decimal.Decimal `json:"saleAmount"` FactoryName string `json:"factoryName"`
CustomsPrice decimal.Decimal `json:"customsPrice"` SalePrice decimal.Decimal `json:"salePrice"`
CustomsAmount decimal.Decimal `json:"customsAmount"` SaleAmount decimal.Decimal `json:"saleAmount"`
OuterLength *decimal.Decimal `json:"outerLength"` CustomsPrice decimal.Decimal `json:"customsPrice"`
OuterWidth *decimal.Decimal `json:"outerWidth"` CustomsAmount decimal.Decimal `json:"customsAmount"`
OuterHeight *decimal.Decimal `json:"outerHeight"` OuterLength *decimal.Decimal `json:"outerLength"`
OuterVolume *decimal.Decimal `json:"outerVolume"` OuterWidth *decimal.Decimal `json:"outerWidth"`
OuterHeight *decimal.Decimal `json:"outerHeight"`
OuterVolume *decimal.Decimal `json:"outerVolume"`
} }
// All @TITLE 获取全部产品 // All @TITLE 获取全部产品