瀏覽代碼

行业搜索修改

WH01243 2 年之前
父節點
當前提交
d70fd2f05d
共有 1 個文件被更改,包括 3 次插入2 次删除
  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 {
-				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, ",")))
 			}
 		}