* Refactor getDataOfTasksPerEstimate method.

This commit is contained in:
tianshujie
2023-08-21 10:42:18 +08:00
parent 460d895072
commit 0078006d28
3 changed files with 12 additions and 42 deletions
+4 -3
View File
@@ -2212,12 +2212,13 @@ class taskModel extends model
}
/**
* Get report data of tasks per estimate
* 获取按预计时间统计的报表数据。
* Get report data of tasks per estimate.
*
* @access public
* @return array
* @return object[]
*/
public function getDataOfTasksPerEstimate()
public function getDataOfTasksPerEstimate(): array
{
$tasks = $this->dao->select('id,estimate')->from(TABLE_TASK)->alias('t1')
->where($this->reportCondition())