From 585b23cbfb48b47b4fccc0cb6b266400d26e930f Mon Sep 17 00:00:00 2001 From: timerzz Date: Sat, 15 Jun 2024 19:44:54 +0800 Subject: [PATCH] =?UTF-8?q?feat=20product=E5=8C=85=E5=90=ABCalculateProces?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/product/model.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/model/product/model.go b/model/product/model.go index cd55bab..b110a25 100644 --- a/model/product/model.go +++ b/model/product/model.go @@ -18,6 +18,7 @@ type Website int const ( WebSite_US_Coach_Outlet Website = iota + 1 + WebSite_CN_Coach_Outlet WebSite_CN_Coach ) @@ -54,8 +55,9 @@ type Product struct { PriceStatus PriceStatus `json:"priceStatus"` //价格状态 Remark string `json:"remark"` //备注 - HistoryPrices []HistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"historyPrices"` - DWHistoryPrices []DWHistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"dwHistoryPrices"` + HistoryPrices []HistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"historyPrices"` + DWHistoryPrices []DWHistoryPrice `gorm:"foreignKey:Pid;references:Pid" json:"dwHistoryPrices"` + CalculateProcess []CalculateProcess `gorm:"foreignKey:Pid;references:Pid" json:"calculateProcess"` } func (p *Product) TableName() string { @@ -65,7 +67,6 @@ func (p *Product) TableName() string { func (p *Product) Env() map[string]any { return map[string]any{ "originalPrice": p.OriginalPrice, - "dwPrice": p.DWPrice, "freight": p.Freight, "exchangeRate": p.ExchangeRate, }