This commit is contained in:
邹宗楠
2023-01-12 14:30:44 +08:00
parent 4165ee2162
commit 10b7a6a2a7

View File

@@ -1974,7 +1974,10 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
FOR UPDATE`
sqlParams = append(sqlParams, utils.DefaultTimeValue)
// globals.SugarLogger.Debug(sql)
globals.SugarLogger.Debug("==========sql %s", sql)
globals.SugarLogger.Debug("==========sqlParams %s", utils.Format4Output(sqlParams, false))
if err = dao.GetRows(db, &allBinds, sql, sqlParams...); err == nil {
globals.SugarLogger.Debug("==========allBinds %s", utils.Format4Output(allBinds, false))
if len(allBinds) > 0 {
inSkuBinsMap := make(map[int]*StoreSkuBindSkuInfo, len(inSkuBinds))
for _, v := range inSkuBinds {