fix: product price float
CI / changes (push) Successful in 13s
CI / ad (push) Successful in 3s
CI / admin (push) Successful in 2s
CI / bff (push) Successful in 2s
CI / chore (push) Successful in 1s
CI / express (push) Successful in 2s
CI / product (push) Successful in 31s
CI / sale (push) Successful in 2s
CI / user (push) Successful in 2s
CI / wecom (push) Successful in 2s
CI / changes (push) Successful in 13s
CI / ad (push) Successful in 3s
CI / admin (push) Successful in 2s
CI / bff (push) Successful in 2s
CI / chore (push) Successful in 1s
CI / express (push) Successful in 2s
CI / product (push) Successful in 31s
CI / sale (push) Successful in 2s
CI / user (push) Successful in 2s
CI / wecom (push) Successful in 2s
This commit is contained in:
@@ -22,16 +22,16 @@ func toProductItem(row dao.Info) *product.Item {
|
||||
Subhead: row.Subhead,
|
||||
Content: row.Content,
|
||||
ModelCode: row.ModelCode,
|
||||
Price: float64(row.Price),
|
||||
StorePrice: float64(row.StorePrice),
|
||||
SalePrice: float64(row.SalePrice),
|
||||
SharePrice: float64(row.SharePrice),
|
||||
AgentPrice: float64(row.AgentPrice),
|
||||
Price: utils.RoundFloat(float64(row.Price)),
|
||||
StorePrice: utils.RoundFloat(float64(row.StorePrice)),
|
||||
SalePrice: utils.RoundFloat(float64(row.SalePrice)),
|
||||
SharePrice: utils.RoundFloat(float64(row.SharePrice)),
|
||||
AgentPrice: utils.RoundFloat(float64(row.AgentPrice)),
|
||||
SaleReward: row.SaleReward,
|
||||
SalesModel: uint32(row.SalesModel),
|
||||
Waybill: row.Waybill,
|
||||
Status: uint32(row.Status),
|
||||
Weight: float64(row.Weight),
|
||||
Weight: utils.RoundFloat(float64(row.Weight)),
|
||||
IsIndex: uint32(row.IsIndex),
|
||||
IndexImage: row.IndexImage,
|
||||
Cubage: row.Cubage,
|
||||
|
||||
Reference in New Issue
Block a user