@@ -0,0 +1,20 @@
+package models
+
+import (
+ "rdluck_tools/orm"
+ "time"
+)
+type CygxIndustryMap struct {
+ IndustryMapId int `orm:"column(industry_map_id);pk" description:"行业图谱id"`
+ IndustryMapName string
+ ParentId int
+ CreateTime time.Time
+}
+func GetCygxIndustryMapByName(industryName string) (items *CygxIndustryMap, err error) {
+ o := orm.NewOrm()
+ sql := ` SELECT * FROM cygx_industry_map WHERE industry_map_name=? ORDER BY parent_id ASC LIMIT 1 `
+ err = o.Raw(sql, industryName).QueryRow(&items)
+ return
@@ -189,3 +189,7 @@ func SearchByKeyWord(keyWord string, pageSize int) (result []*models.SearchItem,
}
return
+func GetIndustryNameMap(keyWord string) {