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

This commit is contained in:
zzw
2026-08-31 11:55:34 +08:00
parent c4af0f481a
commit 90a195c9ca
3 changed files with 24 additions and 27 deletions
+6 -6
View File
@@ -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,