|
@@ -435,7 +435,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 {
|
|
@@ -466,11 +466,12 @@ func (this *Tags) GetStype(href string) (list []map[string]interface{}) {
|
|
|
} else {
|
|
|
m := []map[string]interface{}{}
|
|
|
var data []map[string]interface{}
|
|
|
- newData := public.BaseMysql.SelectBySql(`select id,name,pid from seo_words.seo_stype where name = "拟建项目" or 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`)
|
|
|
+ //newData := public.BaseMysql.SelectBySql(`select id,name,pid from seo_words.seo_stype where name = "拟建项目" or 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`)
|
|
|
+ oldData := public.BaseMysql.SelectBySql(`select id,name,pid from seo_words.seo_stype order by id`)
|
|
|
if oldData != nil && len(*oldData) > 0 {
|
|
|
data = append(data, *oldData...)
|
|
|
}
|
|
@@ -737,8 +738,8 @@ 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 "", ""
|
|
|
+ return "拟建,招标,邀标,询价,竞谈,单一,竞价,变更,中标,成交,废标,流标,合同,验收,违规,预告,需求公示,预审,论证意见,预审结果", ""
|
|
|
+ //return "", ""
|
|
|
}
|
|
|
id, _ := strconv.Atoi(idstr)
|
|
|
data := public.BaseMysql.SelectBySql(`select id,name from seo_words.seo_stype where id =?`, id)
|