|
@@ -151,7 +151,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
if len(s_word) > 0 || len(industry) > 0 {
|
|
|
if reqType == "filter" {
|
|
|
if status == 1 {
|
|
|
- count, totalPage, list = bidsearch.GetPcBidSearchData(s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, 0, bidsearch.SearchPageSize_PC, true, queryItems, field)
|
|
|
+ count, totalPage, list = bidsearch.GetPcBidSearchData(s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, 0, bidsearch.SearchPageSize_PC, true, queryItems, field, m.GetString("notkey"))
|
|
|
}
|
|
|
} else if reqType == "bidSearch" {
|
|
|
//全文检索限制
|
|
@@ -166,7 +166,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
if limitFlag {
|
|
|
if start == 0 {
|
|
|
limit_count := public.Lst.TotalPage * bidsearch.SearchPageSize_PC
|
|
|
- count, totalPage, list = bidsearch.GetPcBidSearchData(s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, 0, limit_count, true, queryItems, field)
|
|
|
+ count, totalPage, list = bidsearch.GetPcBidSearchData(s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, 0, limit_count, true, queryItems, field, m.GetString("notkey"))
|
|
|
if totalPage > int64(public.Lst.TotalPage) {
|
|
|
totalPage = int64(public.Lst.TotalPage)
|
|
|
}
|
|
@@ -175,7 +175,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- count, totalPage, list = bidsearch.GetPcBidSearchData(s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, start, bidsearch.SearchPageSize_PC, true, queryItems, field)
|
|
|
+ count, totalPage, list = bidsearch.GetPcBidSearchData(s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, start, bidsearch.SearchPageSize_PC, true, queryItems, field, m.GetString("notkey"))
|
|
|
}
|
|
|
listSize := 0
|
|
|
if list != nil {
|
|
@@ -192,7 +192,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
if secondSearch {
|
|
|
secondKWS = jy.HttpEs(s_word, "ik_smart", public.DbConf.Elasticsearch.Main.Address)
|
|
|
findfields := `"title"`
|
|
|
- qstr := bidsearch.GetSearchQuery(secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, findfields, bidsearch.GetBidSearchQuery(area, publishtime, subtype, "", buyerclass))
|
|
|
+ qstr := bidsearch.GetSearchQuery(secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, findfields, bidsearch.GetBidSearchQuery(area, publishtime, subtype, "", buyerclass), m.GetString("notkey"))
|
|
|
secRel := elastic.GetAllByNgram(INDEX, TYPE, qstr, findfields, bidSearch_sort, bidSearch_field, 0, 2*bidsearch.SearchPageSize_PC, 0, false)
|
|
|
if secRel != nil {
|
|
|
public.BidListConvert(industry, secRel)
|
|
@@ -223,7 +223,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
})
|
|
|
}
|
|
|
} else if reqType == "lastNews" {
|
|
|
- _, list = getLastNewsData(s_word, area, publishtime, subtype, industry, minprice, maxprice, buyerclass, hasBuyerTel, hasWinnerTel, tabularflag, start, false, true)
|
|
|
+ _, list = getLastNewsData(s_word, area, publishtime, subtype, industry, minprice, maxprice, buyerclass, hasBuyerTel, hasWinnerTel, tabularflag, start, false, true, "")
|
|
|
}
|
|
|
}
|
|
|
if list != nil && len(*list) > 0 {
|
|
@@ -276,10 +276,10 @@ func (m *Front) PcAjaxReq() {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-func getLastNewsData(searchvalue, area, publishtime, subtype, industry, minprice, maxprice, buyerclass, hasBuyerTel, hasWinnerTel, tabularflag string, start int, isGetCount bool, highlight bool) (count int64, list *[]map[string]interface{}) {
|
|
|
+func getLastNewsData(searchvalue, area, publishtime, subtype, industry, minprice, maxprice, buyerclass, hasBuyerTel, hasWinnerTel, tabularflag string, start int, isGetCount bool, highlight bool, notkey string) (count int64, list *[]map[string]interface{}) {
|
|
|
//最新招标信息
|
|
|
findfields := `"title"`
|
|
|
- qstr := bidsearch.GetSearchQuery(searchvalue, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, findfields, bidsearch.GetBidSearchQuery(area, publishtime, subtype, "", buyerclass))
|
|
|
+ qstr := bidsearch.GetSearchQuery(searchvalue, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, findfields, bidsearch.GetBidSearchQuery(area, publishtime, subtype, "", buyerclass), notkey)
|
|
|
if isGetCount {
|
|
|
count = elastic.Count(INDEX, TYPE, qstr)
|
|
|
}
|
|
@@ -474,10 +474,10 @@ func (m *Front) WxsearchlistPaging() {
|
|
|
s_word := ""
|
|
|
if limitFlag {
|
|
|
if pageNum == 1 {
|
|
|
- list, b_word, a_word, s_word = bidsearch.GetWxsearchlistData(searchvalue, scope, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, pageNum, public.Lst.TotalPage*bidsearch.SearchPageSize_WX, queryItems, filed)
|
|
|
+ list, b_word, a_word, s_word = bidsearch.GetWxsearchlistData(searchvalue, scope, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, pageNum, public.Lst.TotalPage*bidsearch.SearchPageSize_WX, queryItems, filed, m.GetString("notkey"))
|
|
|
}
|
|
|
} else {
|
|
|
- list, b_word, a_word, s_word = bidsearch.GetWxsearchlistData(searchvalue, scope, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, pageNum, bidsearch.SearchPageSize_WX, queryItems, filed)
|
|
|
+ list, b_word, a_word, s_word = bidsearch.GetWxsearchlistData(searchvalue, scope, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, pageNum, bidsearch.SearchPageSize_WX, queryItems, filed, m.GetString("notkey"))
|
|
|
}
|
|
|
listSize := 0
|
|
|
if list != nil {
|