* [task#126376,doing,2h] Add the tutorial of taskMange.

This commit is contained in:
xieqiyu
2024-09-04 17:31:41 +08:00
committed by 王于听
parent 47d72362d4
commit 922198443d
8 changed files with 319 additions and 5 deletions
+4
View File
@@ -1331,6 +1331,8 @@ class executionModel extends model
*/
public function getList(int $projectID = 0, string $type = 'all',string $status = 'all', int $limit = 0, int $productID = 0, int $branch = 0, object|null $pager = null, bool $withChildren = true)
{
if(common::isTutorialMode()) return $this->loadModel('tutorial')->getExecutionStats($type);
if($status == 'involved') return $this->getInvolvedExecutionList($projectID, $status, $limit, $productID, $branch);
if($productID != 0)
@@ -1823,6 +1825,8 @@ class executionModel extends model
*/
public function getNoMultipleID(int $projectID): int
{
if(common::isTutorialMode()) return $this->loadModel('tutorial')->getExecution()->id;
return (int)$this->dao->select('id')->from(TABLE_EXECUTION)->where('project')->eq($projectID)->andWhere('multiple')->eq(0)->andWhere('deleted')->eq(0)->fetch('id');
}