分类一直有问题?
This commit is contained in:
@@ -42,10 +42,11 @@ type SkuStoreCatInfo struct {
|
|||||||
ParentVendorCatID string `orm:"column(parent_vendor_cat_id)"`
|
ParentVendorCatID string `orm:"column(parent_vendor_cat_id)"`
|
||||||
ParentCatSyncStatus int8
|
ParentCatSyncStatus int8
|
||||||
|
|
||||||
StoreCatID int `orm:"column(store_category_id)"`
|
StoreCatID int `orm:"column(store_category_id)"`
|
||||||
StoreCatName string
|
StoreCatName string
|
||||||
StoreCatSeq int
|
StoreCatSeq int
|
||||||
IsSysCat int
|
StoreParentCatName string
|
||||||
|
IsSysCat int
|
||||||
}
|
}
|
||||||
|
|
||||||
type StoreSkuSyncInfo struct {
|
type StoreSkuSyncInfo struct {
|
||||||
@@ -363,7 +364,8 @@ func GetStoreCategories(db *DaoDB, vendorID, storeID int, skuIDs []int, level in
|
|||||||
sql := `
|
sql := `
|
||||||
SELECT t4.*, ts.store_category_name store_cat_name, ts.store_category_seq store_cat_seq, ts.id store_category_id,
|
SELECT t4.*, ts.store_category_name store_cat_name, ts.store_category_seq store_cat_seq, ts.id store_category_id,
|
||||||
t5.id map_id, t5.%s_id vendor_cat_id, t5.%s_sync_status cat_sync_status,
|
t5.id map_id, t5.%s_id vendor_cat_id, t5.%s_sync_status cat_sync_status,
|
||||||
tsp.store_category_name parent_cat_name,
|
t4p.name parent_cat_name,
|
||||||
|
tsp.store_category_name store_parent_cat_name,
|
||||||
t5p.id parent_map_id, t5p.%s_id parent_vendor_cat_id, t5p.%s_sync_status parent_cat_sync_status,
|
t5p.id parent_map_id, t5p.%s_id parent_vendor_cat_id, t5p.%s_sync_status parent_cat_sync_status,
|
||||||
t1.is_sys_cat
|
t1.is_sys_cat
|
||||||
FROM store_sku_category_map t5
|
FROM store_sku_category_map t5
|
||||||
|
|||||||
Reference in New Issue
Block a user