This commit is contained in:
邹宗楠
2024-10-10 14:51:50 +08:00
parent f2f5f2be40
commit a3451297ad
3 changed files with 6 additions and 6 deletions

View File

@@ -1952,7 +1952,7 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
globals.SugarLogger.Debugf("---------skuBindInfos := %s", utils.Format4Output(skuBindInfos, false))
}
for _, skuBindInfo := range skuBindInfos {
if skuBindInfo.StoreID == 668470 {
if storeID == 668470 {
globals.SugarLogger.Debugf("---------skuBindInfo := %s", utils.Format4Output(skuBindInfo, false))
}
// 关注且没有给价时需要尝试从store_sku_bind中得到已有的单价
@@ -2036,7 +2036,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对分位向下取整(完成四舍五入的方法)
if skuBindInfo.StoreID == 668470 {
if storeID == 668470 {
globals.SugarLogger.Debugf("-----------allBinds := %s", utils.Format4Output(allBinds, false))
}
for _, v := range allBinds {