* Refactor getKanbanGroup method and releate case.

This commit is contained in:
tianshujie
2023-09-13 16:22:34 +08:00
parent 9a0c89a43c
commit 563a24187e
4 changed files with 139 additions and 98 deletions
+13 -14
View File
@@ -311,20 +311,6 @@ class programTest
return $this->program->getTreeMenu($programID);
}
/**
* Get top pairs.
*
* @param string $model
* @param string $mode
* @param bool $isQueryAll
* @access public
* @return array
*/
public function getTopPairsTest($model = '', $mode = '', $isQueryAll = false)
{
return $this->program->getTopPairs($model, $mode, $isQueryAll);
}
/**
* Get kanban group.
*
@@ -429,4 +415,17 @@ class programTest
return array('old' => empty($oldChildGrade) ? 0 : $oldChildGrade, 'new' => empty($newChildGrade) ? 0 : $newChildGrade);
}
/**
* 获取看板统计的相关数据。
* Get Kanban statistics data.
*
* @access public
* @return array
*/
public function getKanbanStatisticDataTest(): array
{
$programs = $this->program->getTopPairs('noclosed');
return $this->program->getKanbanStatisticData($programs);
}
}