diff --git a/business/model/dao/sku.go b/business/model/dao/sku.go index 7950cb534..2bf5c2d65 100644 --- a/business/model/dao/sku.go +++ b/business/model/dao/sku.go @@ -99,7 +99,7 @@ func GetCategories(db *DaoDB, parentID, level int, catIDs []int, isExd bool) (ca func GetCategoriesForStore(db *DaoDB, parentID, level int, catIDs []int) (cats []*model.StoreCategoryMap, err error) { sql := ` - SELECT t1.*, t1.seq store_category_seq + SELECT t1.*, t1.seq store_category_seq, t1.id category_id FROM sku_category t1 WHERE t1.deleted_at = ?` params := []interface{}{