From 68edaee661498ca671a40bec964e26cae6b9c7d7 Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 22 May 2023 13:59:43 +0800 Subject: [PATCH] + bugTao: add function to fetch base info of a bug from database. --- module/bug/tao.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/module/bug/tao.php b/module/bug/tao.php index 97076c96e7..867b020075 100644 --- a/module/bug/tao.php +++ b/module/bug/tao.php @@ -2,6 +2,19 @@ declare(strict_types=1); class bugTao extends bugModel { + /** + * 获取Bug的基础数据。 + * Fetch base info of a bug. + * + * @param int $bugID + * @access protected + * @return object|false + */ + protected function fetchBaseInfo(int $bugID): object|false + { + return $this->dao->select('*')->from(TABLE_BUG)->where('id')->eq($bugID)->fetch(); + } + /** * Get bug details, including all contents of the TABLE_BUG, execution name, associated story name, associated story status, associated story version, associated task name, and associated plan name. * 获取bug的详情,包含bug表的所有内容、所属执行名称、关联需求名称、关联需求状态、关联需求版本、关联任务名称、关联计划名称