|
@@ -460,13 +460,21 @@ func (this *Tags) GetStype(href string) (list []map[string]interface{}) {
|
|
|
list = qu.ObjArrToMapArr(l)
|
|
|
} else {
|
|
|
m := []map[string]interface{}{}
|
|
|
- data := public.BaseMysql.SelectBySql(`select id,name,pid from seo_words.seo_stype where name !="拟建项目" order by id`)
|
|
|
+ var data []map[string]interface{}
|
|
|
+ newData := public.BaseMysql.SelectBySql(`select id,name,pid from seo_words.seo_stype where name == "拟建项目" and name == "采购意向 "order by id`)
|
|
|
+ if newData != nil && len(*newData) > 0 {
|
|
|
+ data = append(data, *newData...)
|
|
|
+ }
|
|
|
+ oldData := public.BaseMysql.SelectBySql(`select id,name,pid from seo_words.seo_stype where name != "拟建项目" and name != "采购意向 "order by id`)
|
|
|
+ if oldData != nil && len(*oldData) > 0 {
|
|
|
+ data = append(data, *oldData...)
|
|
|
+ }
|
|
|
codeMap := map[int64][]int64{}
|
|
|
level1 := []int64{}
|
|
|
nameToCode := map[string]int64{}
|
|
|
codeToName := map[int64]string{}
|
|
|
- if data != nil && len(*data) > 0 {
|
|
|
- for _, v := range *data {
|
|
|
+ if len(data) > 0 {
|
|
|
+ for _, v := range data {
|
|
|
name := qu.ObjToString(v["name"])
|
|
|
pid := qu.Int64All(v["pid"])
|
|
|
id := qu.Int64All(v["id"])
|
|
@@ -713,9 +721,10 @@ func (this *Tags) GetInsturyKeywords(idstr string) (name, class_1, class_2 strin
|
|
|
}
|
|
|
|
|
|
// 获取信息类型 【全部是虚假的全部、实则是不包含拟建和采购意向的全部】
|
|
|
+// p353包含采购意向与拟建
|
|
|
func (this *Tags) GetInfoType(idstr string) (string, string) {
|
|
|
if idstr == "all" {
|
|
|
- return "招标,邀标,询价,竞谈,单一,竞价,变更,中标,成交,废标,流标,合同,验收,违规,预告,需求公示,预审,论证意见,预审结果", ""
|
|
|
+ return "拟建,采购意向,招标,邀标,询价,竞谈,单一,竞价,变更,中标,成交,废标,流标,合同,验收,违规,预告,需求公示,预审,论证意见,预审结果", ""
|
|
|
}
|
|
|
id, _ := strconv.Atoi(idstr)
|
|
|
data := public.BaseMysql.SelectBySql(`select id,name from seo_words.seo_stype where id =?`, id)
|