This commit is contained in:
邹宗楠
2023-08-08 10:45:58 +08:00
parent f1cfe3dcd7
commit d32a8cd198
2 changed files with 2 additions and 9 deletions

View File

@@ -711,15 +711,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
}
}
globals.SugarLogger.Debugf("====================%s", utils.Format4Output(deleteList, false))
globals.SugarLogger.Debugf("====================%s", utils.Format4Output(updateList, false))
globals.SugarLogger.Debugf("====================%s", utils.Format4Output(stockList, false))
globals.SugarLogger.Debugf("====================%s", utils.Format4Output(createList, false))
globals.SugarLogger.Debugf("====================%s", utils.Format4Output(onlineList, false))
globals.SugarLogger.Debugf("====================%s", utils.Format4Output(offlineList, false))
globals.SugarLogger.Debugf("====================%s", utils.Format4Output(priceList, false))
globals.SugarLogger.Debugf("====================%s", utils.Format4Output(updateItems, false))
globals.SugarLogger.Debugf("====================%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)

View File

@@ -592,6 +592,8 @@ func (p *PurchaseHandler) UpdateStoreSkusPrice(ctx *jxcontext.Context, vendorOrg
CleanSkuMemberPrice: utils.Int64ToPointer(model.YES),
SubTitle: utils.String2Pointer("小时达"),
}
// 临时更新上传图片错误的,或图片上传失败的商品
updateSku.SkuPicUrls = uploadImg(api, v.SkuID, model.VendorIDTaoVegetable, nil)
updateSkuList = append(updateSkuList, updateSku)
}
param.ParamList = &updateSkuList