* [bug,done,0.5h] fix count_of_daily_finished_task_in_user.

This commit is contained in:
qixinzhi
2024-06-20 09:18:44 +08:00
committed by 王于听
parent ccae650553
commit f5da97fe1b
@@ -30,7 +30,7 @@ class count_of_daily_finished_task_in_user extends baseCalc
public function singleQuery()
{
$select = "`finishedBy`, YEAR(`finishedDate`) as `year`, MONTH(`finishedDate`) as `month`, DAY(`finishedDate`) as `day`, COUNT(`finishedBy`) as `value`";
$select = "`finishedBy` as 'user', YEAR(`finishedDate`) as `year`, MONTH(`finishedDate`) as `month`, DAY(`finishedDate`) as `day`, COUNT(`finishedBy`) as `value`";
return $this->dao->select($select)->from($this->getSingleSql())
->where('`projectStatus`')->ne('suspended')
->andWhere('`executionStatus`')->ne('suspended')