From e93138217d0cafa59bf6da5c09f7fc0f2d7cb968 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Wed, 30 Oct 2024 14:00:07 +0800 Subject: [PATCH] *[misc] remove dataset redeclare getProjectBugs function. --- module/metric/dataset.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/module/metric/dataset.php b/module/metric/dataset.php index c4d975c0f7..44ea1e5533 100644 --- a/module/metric/dataset.php +++ b/module/metric/dataset.php @@ -248,34 +248,13 @@ class dataset $stmt = $this->dao->select("$fieldList, $longlife as longlife") ->from(TABLE_BUG)->alias('t1') ->leftJoin(TABLE_PRODUCT)->alias('t2')->on('t1.product=t2.id') - ->leftJoin(TABLE_PROJECT)->alias('t3')->on('t1.project=t3.id') ->where('t1.deleted')->eq(0) ->andWhere('t2.deleted')->eq(0) - ->andWhere('t3.deleted')->eq(0) ->andWhere('t2.shadow')->eq(0); return $this->defaultWhere($stmt, 't2'); } - /** - * 获取项目bug数据。 - * Get project bug list. - * - * @param string $fieldList - * @access public - * @return PDOStatement - */ - public function getProjectBugs($fieldList) - { - $longlife = $this->dao->select('value') - ->from(TABLE_CONFIG) - ->where('module')->eq('bug') - ->andWhere('key')->eq('longlife') - ->fetch('value'); - - if(!$longlife) $longlife = 7; - } - /** * 获取执行bug数据。 * Get execution product bug list.