diff --git a/business/jxstore/cms/sync2.go b/business/jxstore/cms/sync2.go index 2e52fe5d7..92e034bcf 100644 --- a/business/jxstore/cms/sync2.go +++ b/business/jxstore/cms/sync2.go @@ -53,8 +53,8 @@ func syncCategories(ctx *jxcontext.Context, db *dao.DaoDB, parentTask tasksch.IT } //表示是不用京西分类,要用平台分类 if catVendorInfo.IsJxCat == model.YES { - catVendorInfo.Seq = catVendorInfo.VendorCategorySeq - if catVendorInfo.VendorCategoryName != "" { + if catVendorInfo.VendorCategoryID != 0 { + catVendorInfo.Seq = catVendorInfo.VendorCategorySeq catVendorInfo.Name = catVendorInfo.VendorCategoryName } } diff --git a/business/model/dao/store_sku.go b/business/model/dao/store_sku.go index e1b87fa7f..cc25ff084 100644 --- a/business/model/dao/store_sku.go +++ b/business/model/dao/store_sku.go @@ -52,6 +52,7 @@ type SkuStoreCatInfo struct { VendorCategoryName string VendorCategorySeq int + VendorCategoryID int `orm:"column(vendor_category_id)"` } type StoreSkuSyncInfo struct {