This commit is contained in:
邹宗楠
2023-07-12 10:48:52 +08:00
parent 264ce8b3c1
commit 0095f09c4f
2 changed files with 10 additions and 14 deletions

View File

@@ -753,6 +753,8 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
if len(createList) > 0 {
_, err = putils.FreeBatchStoreSkuSyncInfo("创建门店商品", func(task tasksch.ITask, batchedStoreSkuList []*dao.StoreSkuSyncInfo) (result interface{}, successCount int, err error) {
var failedList []*partner.StoreSkuInfoWithErr
globals.SugarLogger.Debugf("==============len createList : %d", len(createList))
globals.SugarLogger.Debugf("==============len batchedStoreSkuList : %d", len(batchedStoreSkuList))
if failedList, err = singleStoreHandler.CreateStoreSkus(ctx, storeID, vendorStoreID, batchedStoreSkuList); singleStoreHandler.IsErrSkuExist(err) {
if skuNameList, err2 := singleStoreHandler.GetStoreSkusFullInfo(ctx, task, storeID, vendorStoreID, []*partner.StoreSkuInfo{
&partner.StoreSkuInfo{