This commit is contained in:
邹宗楠
2023-01-12 15:54:53 +08:00
parent 70ca31010d
commit 9b7d608071
8 changed files with 1 additions and 16 deletions

View File

@@ -474,7 +474,6 @@ 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
@@ -540,10 +539,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
if singleStoreHandler == nil {
if dao.IsVendorThingIDEmpty(sku.VendorSkuID) {
// todo 多平台商品库没有正常创建,直接跳过
// 这是打的补,可以删除掉感觉
//if sku.VendorOrgCode == "379599" { // 水果的果切
// createList = append(createList, sku)
//}
} else {
sku.SkuSyncStatus |= model.SyncFlagSaleMask | model.SyncFlagPriceMask
bareSku = storeSkuSyncInfo2Bare(sku)
@@ -702,8 +697,6 @@ 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) {