|
@@ -430,7 +430,7 @@ func (this *Tags) GetNewBidInfo() (list []map[string]interface{}) {
|
|
|
if l, ok := redis.Get("other", rediskey).([]interface{}); ok && l != nil && len(l) > 0 {
|
|
|
list = qu.ObjArrToMapArr(l)
|
|
|
} else {
|
|
|
- _, _, lists := bidsearch.GetPcBidSearchData("", "", "", "", "招标预告,招标公告,招标结果,招标信用信息", "", "", "", "", "", "", "", "", 1, false, nil, bidSearch_field_1, "", false, false, "", 50, "")
|
|
|
+ _, _, lists := bidsearch.GetPcBidSearchData("", "", "", "", "", "", "", "", "", "", "", "", "", 1, false, nil, bidSearch_field_1, "", false, false, "", 50, "")
|
|
|
if lists != nil && len(*lists) > 10 {
|
|
|
*lists = (*lists)[0:10]
|
|
|
for _, v := range *lists {
|
|
@@ -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)
|