- Remove pivotModel::getUserYearTodos.

This commit is contained in:
wangxuepeng
2023-12-07 17:36:06 +08:00
parent 71032899bd
commit 8aa23893bc
-18
View File
@@ -661,24 +661,6 @@ class pivotModel extends model
return $bugs;
}
/**
* Get user todo stat in this year.
*
* @param array $accounts
* @param int $year
* @access public
* @return object
*/
public function getUserYearTodos($accounts, $year)
{
return $this->dao->select("count(*) as count, sum(if((`status` != 'done'), 1, 0)) AS `undone`, sum(if((`status` = 'done'), 1, 0)) AS `done`")->from(TABLE_TODO)
->where('LEFT(date, 4)')->eq($year)
->andWhere('deleted')->eq('0')
->andWhere('vision')->eq($this->config->vision)
->beginIF($accounts)->andWhere('account')->in($accounts)->fi()
->fetch();
}
/**
* Get user effort stat in this error.
*