This commit is contained in:
邹宗楠
2023-03-09 11:04:46 +08:00
parent 324254278b
commit 888bb9053a
3 changed files with 18 additions and 4 deletions

View File

@@ -475,6 +475,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
skus, err = dao.GetStoreSkus(db, vendorID, storeID, skuIDs)
}
globals.SugarLogger.Debugf("======sku:= %s", utils.Format4Output(skus, false))
if err != nil || len(skus) == 0 {
return err
}
@@ -698,6 +699,18 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
// }
}
if storeID == 668815 {
globals.SugarLogger.Debugf("======createList:= %s", utils.Format4Output(createList, false))
globals.SugarLogger.Debugf("======updateList:= %s", utils.Format4Output(updateList, false))
globals.SugarLogger.Debugf("======deleteList:= %s", utils.Format4Output(deleteList, false))
globals.SugarLogger.Debugf("======stockList:= %s", utils.Format4Output(stockList, false))
globals.SugarLogger.Debugf("======onlineList:= %s", utils.Format4Output(onlineList, false))
globals.SugarLogger.Debugf("======offlineList:= %s", utils.Format4Output(offlineList, false))
globals.SugarLogger.Debugf("======priceList:= %s", utils.Format4Output(priceList, false))
globals.SugarLogger.Debugf("======updateItems:= %s", utils.Format4Output(updateItems, false))
globals.SugarLogger.Debugf("======reorderSkuMap:= %s", utils.Format4Output(reorderSkuMap, false))
}
task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx,
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
step := batchItemList[0].(int)