|
@@ -165,15 +165,14 @@ func (l *GetSearchListLogic) GetSearchList(in *bxcore.SearchReq) (*bxcore.Search
|
|
|
t2 := time.Now()
|
|
|
in.PublishTime = publishTime
|
|
|
res.Count, res.Total, res.List = ks.GetBidSearchList(in)
|
|
|
- // 精准模式不足50条的非空标讯查询 匹配模糊查询数
|
|
|
- if res.Count < 50 && in.SearchMode == 0 && in.KeyWords != "" {
|
|
|
- ks.SearchParamsHandle(nin)
|
|
|
- res.BCount = service.GetBidSearchCount(nin)
|
|
|
- log.Println("精准查询数据不足 匹配模糊查询数:", res.BCount)
|
|
|
- }
|
|
|
-
|
|
|
log.Println("2查询耗时:", time.Since(t2))
|
|
|
}
|
|
|
+ // 精准模式不足50条的非空标讯查询 匹配模糊查询数
|
|
|
+ if res.Count < IC.C.PaySearchLimit.PrecisionNum && in.SearchMode == 0 && in.KeyWords != "" {
|
|
|
+ ks.SearchParamsHandle(nin)
|
|
|
+ res.BCount = service.GetBidSearchCount(nin)
|
|
|
+ log.Println("精准查询数据不足 匹配模糊查询数:", res.BCount)
|
|
|
+ }
|
|
|
res.KeyWords = strings.Join(heightWords, " ")
|
|
|
res.InterceptOtherWords = in.InterceptOtherWords
|
|
|
res.InterceptKeyWords = in.InterceptKeyWords
|