From a11eb28c254f8b07acb43ff1a022bc4392eb473d Mon Sep 17 00:00:00 2001 From: liyang Date: Tue, 17 Dec 2024 15:46:32 +0800 Subject: [PATCH] * [task#134797] fix get mr sql. --- module/metric/dataset.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/metric/dataset.php b/module/metric/dataset.php index e30abb56e8..62e9e368bd 100644 --- a/module/metric/dataset.php +++ b/module/metric/dataset.php @@ -1057,9 +1057,10 @@ class dataset public function getMRs($fieldList) { return $this->dao->select($fieldList)->from(TABLE_MR)->alias('t1') - ->leftJoin(TABLE_REPO)->alias('t2')->on('t1.hostID = t2.id') + ->leftJoin(TABLE_REPO)->alias('t2')->on('t1.repoID = t2.id') ->where('t1.deleted')->eq('0') - ->andWhere('t2.deleted')->eq('0'); + ->andWhere('t2.deleted')->eq('0') + ->andWhere('t1.isFlow')->eq('0'); } /**