fix: 审核通过销量问题

master
howell 3 years ago
parent e1fb0808af
commit 8470f03754

@ -703,7 +703,7 @@ func (g goodsLogic) SaveToMain(tx *gorm.DB, goodsID uint, skuObj []strict.SkuPri
ControlPrice: s.OriginalPrice,
SalesVolume: 0,
Inventory: s.Inventory,
SalesVolumeInc: salesVol[s.Id],
SalesVolumeInc: uint(rand.Intn(20)),
Coupon: coupon,
GoodsNum: s.GoodsNum,
TMallPrice: s.TMallPrice,
@ -711,6 +711,7 @@ func (g goodsLogic) SaveToMain(tx *gorm.DB, goodsID uint, skuObj []strict.SkuPri
JdPrice: s.JdPrice,
JdUrl: s.JdUrl,
GysSkuID: s.Id,
SaleVolumeInc2: uint(rand.Intn(20)),
}
if err := tx.Create(&rSku).Error; err != nil {
return err

Loading…
Cancel
Save