瀏覽代碼

no message

Jianghan 9 月之前
父節點
當前提交
fea2c768ba
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      api/internal/service/prListService.go

+ 1 - 2
api/internal/service/prListService.go

@@ -42,12 +42,11 @@ func GetMonitorList(req *types.PrMonitorListReq) (resultList []map[string]interf
 			esQuery1 = fmt.Sprintf(esQ2, strings.ReplaceAll(strings.Join(bName, ","), ",", `","`), strings.ReplaceAll(strings.Join(fields, ","), ",", `","`), pageStart, req.PageSize)
 		}
 		total, result := elastic.GetWithCount("bidding", "bidding", "", esQuery1)
-		if result != nil && len(*result) > 0 {
+		if total == 0 {
 			return nil, 0
 		}
 		for _, m := range *result {
 			resultList = append(resultList, GetInfoData(m))
-
 		}
 		return resultList, total
 	} else {