This commit is contained in:
邹宗楠
2024-05-17 18:17:05 +08:00
parent 9c54c8a986
commit 9eb744874b
2 changed files with 6 additions and 9 deletions

View File

@@ -813,16 +813,14 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
}
successList := putils.UnselectStoreSkuSyncListByVendorSkuIDs(batchedStoreSkuList, GetVendorSkuIDList(failedList))
if len(successList) > 0 {
_, err := updateStoreSku(dao.GetDB(), vendorID, successList, model.SyncFlagNewMask)
if err != nil {
globals.SugarLogger.Debugf("20.sth wrong on updateStoreSku: %v", err)
}
_, err = updateStoreSku(dao.GetDB(), vendorID, successList, model.SyncFlagNewMask)
}
if vendorID == model.VendorIDDD {
_, err = updateStoreSku(dao.GetDB(), vendorID, batchedStoreSkuList, model.SyncFlagNewMask)
}
return nil, len(successList), err
}, ctx, task, createList, singleStoreHandler.GetStoreSkusBatchSize(partner.FuncUpdateStoreSkus), isContinueWhenError2)
if err != nil {
globals.SugarLogger.Debug("create sku wrong on ", err)
}
}
case 2:
if len(updateList) > 0 {