feat(erp): 添加模具和父级装运销售产品ID字段到产品项结构
- 添加 Mold 字段用于标识模具信息 - 添加 ParentShipmentSaleProductID 字段用于关联父级装运销售产品 - 重新排列结构体字段顺序以保持一致性 - 维护所有现有字段的完整功能和数据映射关系
This commit is contained in:
@@ -11,37 +11,39 @@ type product struct {
|
||||
}
|
||||
|
||||
type ProductItem struct {
|
||||
Id int64 `json:"id"`
|
||||
MixedFlag int64 `json:"mixedFlag"`
|
||||
Serial string `json:"serial"`
|
||||
CustomSerial string `json:"customSerial"`
|
||||
Po string `json:"po"`
|
||||
Name string `json:"name"`
|
||||
BlEngName string `json:"blEngName"`
|
||||
ShipmentCount int64 `json:"shipmentCount"`
|
||||
InnerNum *int64 `json:"innerNum"`
|
||||
InnerBoxCount *int64 `json:"innerBoxCount"`
|
||||
OuterNum *int64 `json:"outerNum"`
|
||||
OuterBoxCount int64 `json:"outerBoxCount"`
|
||||
CustomsSerial string `json:"customsSerial"`
|
||||
CustomsName string `json:"customsName"`
|
||||
CustomsDetail string `json:"customsDetail"`
|
||||
CustomsMeasureUnit string `json:"customsMeasureUnit"`
|
||||
ShipmentCountUnit string `json:"shipmentCountUnit"`
|
||||
CustomsGrossWeight decimal.Decimal `json:"customsGrossWeight"`
|
||||
TotalCustomsGrossWeight decimal.Decimal `json:"totalCustomsGrossWeight"`
|
||||
CustomsNetWeight decimal.Decimal `json:"customsNetWeight"`
|
||||
TotalCustomsNetWeight decimal.Decimal `json:"totalCustomsNetWeight"`
|
||||
DomesticSupply string `json:"domesticSupply"`
|
||||
FactoryName string `json:"factoryName"`
|
||||
SalePrice decimal.Decimal `json:"salePrice"`
|
||||
SaleAmount decimal.Decimal `json:"saleAmount"`
|
||||
CustomsPrice decimal.Decimal `json:"customsPrice"`
|
||||
CustomsAmount decimal.Decimal `json:"customsAmount"`
|
||||
OuterLength *decimal.Decimal `json:"outerLength"`
|
||||
OuterWidth *decimal.Decimal `json:"outerWidth"`
|
||||
OuterHeight *decimal.Decimal `json:"outerHeight"`
|
||||
OuterVolume *decimal.Decimal `json:"outerVolume"`
|
||||
Id int64 `json:"id"`
|
||||
MixedFlag int64 `json:"mixedFlag"`
|
||||
Mold int64 `json:"mold"`
|
||||
ParentShipmentSaleProductID int64 `json:"parentShipmentSaleProductID"`
|
||||
Serial string `json:"serial"`
|
||||
CustomSerial string `json:"customSerial"`
|
||||
Po string `json:"po"`
|
||||
Name string `json:"name"`
|
||||
BlEngName string `json:"blEngName"`
|
||||
ShipmentCount int64 `json:"shipmentCount"`
|
||||
InnerNum *int64 `json:"innerNum"`
|
||||
InnerBoxCount *int64 `json:"innerBoxCount"`
|
||||
OuterNum *int64 `json:"outerNum"`
|
||||
OuterBoxCount int64 `json:"outerBoxCount"`
|
||||
CustomsSerial string `json:"customsSerial"`
|
||||
CustomsName string `json:"customsName"`
|
||||
CustomsDetail string `json:"customsDetail"`
|
||||
CustomsMeasureUnit string `json:"customsMeasureUnit"`
|
||||
ShipmentCountUnit string `json:"shipmentCountUnit"`
|
||||
CustomsGrossWeight decimal.Decimal `json:"customsGrossWeight"`
|
||||
TotalCustomsGrossWeight decimal.Decimal `json:"totalCustomsGrossWeight"`
|
||||
CustomsNetWeight decimal.Decimal `json:"customsNetWeight"`
|
||||
TotalCustomsNetWeight decimal.Decimal `json:"totalCustomsNetWeight"`
|
||||
DomesticSupply string `json:"domesticSupply"`
|
||||
FactoryName string `json:"factoryName"`
|
||||
SalePrice decimal.Decimal `json:"salePrice"`
|
||||
SaleAmount decimal.Decimal `json:"saleAmount"`
|
||||
CustomsPrice decimal.Decimal `json:"customsPrice"`
|
||||
CustomsAmount decimal.Decimal `json:"customsAmount"`
|
||||
OuterLength *decimal.Decimal `json:"outerLength"`
|
||||
OuterWidth *decimal.Decimal `json:"outerWidth"`
|
||||
OuterHeight *decimal.Decimal `json:"outerHeight"`
|
||||
OuterVolume *decimal.Decimal `json:"outerVolume"`
|
||||
}
|
||||
|
||||
// All @TITLE 获取全部产品
|
||||
|
||||
Reference in New Issue
Block a user