|
|
|
@ -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
|
|
|
|
|