This commit is contained in:
苏尹岚
2020-08-25 11:33:44 +08:00
parent 9739d0d2bb
commit b1913e8f26

View File

@@ -86,6 +86,7 @@ func SyncStoreCategories(ctx *jxcontext.Context, parentTask tasksch.ITask, vendo
storeCatMap := &model.StoreSkuCategoryMap{}
storeCatMap.ID = catInfo.MapID
var failedList []*partner.StoreSkuInfoWithErr
fmt.Println("4444444444444444444444444444444444444444444444")
if catInfo.IsExdSpec == model.YES {
if vendorID != model.VendorIDEBAI {
return nil, err
@@ -96,8 +97,8 @@ func SyncStoreCategories(ctx *jxcontext.Context, parentTask tasksch.ITask, vendo
catInfo.Name = catInfo.StoreCatName
catInfo.Seq = catInfo.StoreCatSeq
}
}
fmt.Println("3333333333333333333333333333333333333333333333")
if model.IsSyncStatusDelete(catInfo.CatSyncStatus) { // 删除
if model.IsSyncStatusDelete(catInfo.CatSyncStatus) && !dao.IsVendorThingIDEmpty(catInfo.VendorCatID) {
err = handler.DeleteStoreCategory(ctx, storeID, vendorStoreID, catInfo.VendorCatID, level)