This commit is contained in:
苏尹岚
2021-01-26 18:10:48 +08:00
parent 9ab6b39845
commit 720c23a67e

View File

@@ -54,8 +54,10 @@ func syncCategories(ctx *jxcontext.Context, db *dao.DaoDB, parentTask tasksch.IT
//表示是不用京西分类,要用平台分类 //表示是不用京西分类,要用平台分类
if catVendorInfo.IsJxCat == model.YES { if catVendorInfo.IsJxCat == model.YES {
catVendorInfo.Seq = catVendorInfo.VendorCategorySeq catVendorInfo.Seq = catVendorInfo.VendorCategorySeq
if catVendorInfo.VendorCategoryName != "" {
catVendorInfo.Name = catVendorInfo.VendorCategoryName catVendorInfo.Name = catVendorInfo.VendorCategoryName
} }
}
if multiStoresHandler, ok := partner.GetPurchasePlatformFromVendorID(catVendorInfo.VendorID).(partner.IMultipleStoresHandler); ok { if multiStoresHandler, ok := partner.GetPurchasePlatformFromVendorID(catVendorInfo.VendorID).(partner.IMultipleStoresHandler); ok {
if model.IsSyncStatusDelete(catVendorInfo.CatSyncStatus) { //删除 if model.IsSyncStatusDelete(catVendorInfo.CatSyncStatus) { //删除
if !dao.IsVendorThingIDEmpty(catVendorInfo.VendorCatID) && if !dao.IsVendorThingIDEmpty(catVendorInfo.VendorCatID) &&