This commit is contained in:
邹宗楠
2024-12-31 09:19:36 +08:00
parent 45ed207137
commit dcff9513b9
3 changed files with 7 additions and 8 deletions

View File

@@ -476,7 +476,6 @@ func GetStoresSkusForStore(ctx *jxcontext.Context, storeID int, isFocus, isAct b
// }
//}
}
globals.SugarLogger.Debugf("-------skuNamesInfo := %s", utils.Format4Output(skuNamesInfo, false))
return skuNamesInfo, err
}
@@ -2030,7 +2029,7 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
}
unitPrice = int(math.Floor(float64(unitPrice)*scaleFactor/10+0.5)) * 10 //四舍五入 价格为100倍 角分为十位个位 除以10 + 0.5对分位向下取整(完成四舍五入的方法)
for _, v := range allBinds {
if v.Stock == 0 {
if v.Stock == 0 && beego.BConfig.RunMode != model.ServerTypePet {
v.Stock = model.MaxStoreSkuStockQty
}
var num int64