This commit is contained in:
苏尹岚
2021-01-27 09:40:00 +08:00
parent 720c23a67e
commit 0226aab316
2 changed files with 3 additions and 2 deletions

View File

@@ -53,8 +53,8 @@ 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 if catVendorInfo.VendorCategoryID != 0 {
if catVendorInfo.VendorCategoryName != "" { catVendorInfo.Seq = catVendorInfo.VendorCategorySeq
catVendorInfo.Name = catVendorInfo.VendorCategoryName catVendorInfo.Name = catVendorInfo.VendorCategoryName
} }
} }

View File

@@ -52,6 +52,7 @@ type SkuStoreCatInfo struct {
VendorCategoryName string VendorCategoryName string
VendorCategorySeq int VendorCategorySeq int
VendorCategoryID int `orm:"column(vendor_category_id)"`
} }
type StoreSkuSyncInfo struct { type StoreSkuSyncInfo struct {