This commit is contained in:
邹宗楠
2023-01-12 14:47:13 +08:00
parent 10b7a6a2a7
commit 70ca31010d
2 changed files with 5 additions and 3 deletions

View File

@@ -474,6 +474,8 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
} else {
skus, err = dao.GetStoreSkus(db, vendorID, storeID, skuIDs)
}
globals.SugarLogger.Debug("==========skus %s", utils.Format4Output(skus, false))
if err != nil || len(skus) == 0 {
return err
}
@@ -700,6 +702,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
// api.JdShop2API.SetCookieWithStr(configs[0].Value)
// }
}
globals.SugarLogger.Debug("==========createList %s", utils.Format4Output(createList, false))
globals.SugarLogger.Debug("==========updateList %s", utils.Format4Output(updateList, 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)