Browse Source

行业搜索修改

WH01243 2 years ago
parent
commit
d70fd2f05d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      jyBXSubscribe/rpc/model/push.go

+ 3 - 2
jyBXSubscribe/rpc/model/push.go

@@ -420,8 +420,9 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 
 
 			}
 			}
 			if len(find_in_set) == 1 {
 			if len(find_in_set) == 1 {
-				querys = append(querys, find_in_set[0])
-			} else if len(find_in_set) > 1 {
+				find_in_set = append(find_in_set, "9999")
+			}
+			if len(find_in_set) > 0 {
 				querys = append(querys, fmt.Sprintf(" t.labelvalues in (%s)", strings.Join(find_in_set, ",")))
 				querys = append(querys, fmt.Sprintf(" t.labelvalues in (%s)", strings.Join(find_in_set, ",")))
 			}
 			}
 		}
 		}