Browse Source

fix:优化sql

duxin 1 year ago
parent
commit
98f22a0a08
1 changed files with 1 additions and 2 deletions
  1. 1 2
      jyBXCore/rpc/internal/logic/getsearchlistlogic.go

+ 1 - 2
jyBXCore/rpc/internal/logic/getsearchlistlogic.go

@@ -166,8 +166,7 @@ func (l *GetSearchListLogic) GetSearchList(in *bxcore.SearchReq) (*bxcore.Search
 			in.PublishTime = publishTime
 			res.Count, res.Total, res.List = ks.GetBidSearchList(in)
 			// 精准模式不足50条的非空标讯查询 匹配模糊查询数
-			if res.Count < 50 && in.SearchMode == 0 && in.KeyWords != "" &&
-				(in.SearchGroup == 0 || in.SearchGroup == 3 || in.SearchGroup == 4 || in.SearchGroup == 5) {
+			if res.Count < 50 && in.SearchMode == 0 && in.KeyWords != "" {
 				ks.SearchParamsHandle(nin)
 				res.BCount = service.GetBidSearchCount(nin)
 				log.Println("精准查询数据不足 匹配模糊查询数:", res.BCount)