* Finish task #3126.

This commit is contained in:
pengjiangxiu
2017-08-16 17:18:45 +08:00
parent 8d909478e2
commit 6c19289354
+8 -1
View File
@@ -1408,12 +1408,19 @@ class taskModel extends model
*/
public function getDataOftasksPerPri()
{
return $this->dao->select('pri AS name, COUNT(*) AS value')
$priList = $this->dao->select('pri AS name, COUNT(*) AS value')
->from(TABLE_TASK)->alias('t1')
->where($this->reportCondition())
->groupBy('pri')
->orderBy('value DESC')
->fetchAll('name');
foreach($priList as $index => $pri)
{
$priList[$index]->name = $this->lang->task->priList[$pri->name];
}
return $priList;
}
/**