* Extract into function.

This commit is contained in:
daitingting
2023-12-20 01:58:20 +00:00
parent 0f2c021558
commit 1e8daa3dce
2 changed files with 29 additions and 5 deletions
+24
View File
@@ -8557,4 +8557,28 @@ class upgradeModel extends model
if(trim($lastTwoLines[0]) == 'HasError') return true;
return false;
}
/**
* 获取没有合并的产品数量。
* Get no merged product count.
*
* @access public
* @return int
*/
public function getNoMergedProductCount(): int
{
return $this->dao->select('count(*) AS count')->from(TABLE_PRODUCT)->where('program')->eq(0)->andWhere('vision')->eq('rnd')->fetch('count');
}
/**
* 获取没有合并的迭代数量。
* Get no merged sprint count.
*
* @access public
* @return int
*/
public function getNoMergedSprintCount(): int
{
return $this->dao->select('count(*) AS count')->from(TABLE_PROJECT)->where('vision')->eq('rnd')->andWhere('project')->eq(0)->andWhere('type')->eq('sprint')->andWhere('deleted')->eq('0')->fetch('count');
}
}