diff --git a/module/metric/dataset.php b/module/metric/dataset.php index 9c1d098768..4c1981851d 100644 --- a/module/metric/dataset.php +++ b/module/metric/dataset.php @@ -1012,6 +1012,22 @@ class dataset ->where('t1.deleted')->eq('0'); } + /** + * 获取流水线执行数据。 + * Get compile. + * + * @param string $fieldList + * @access public + * @return PDOStatement + */ + public function getCompile($fieldList) + { + return $this->dao->select($fieldList)->from(TABLE_COMPILE)->alias('t1') + ->leftJoin(TABLE_JOB)->alias('t2')->on('t1.job = t2.id') + ->where('t1.deleted')->eq('0') + ->andWhere('t2.deleted')->eq('0'); + } + /** * 统计代码库问题信息。 * Get repo issues.