* [misc] replace COUNT(*) with COUNT(1) in sql.

This commit is contained in:
liugang
2024-06-27 14:07:27 +08:00
committed by 王于听
parent 250b4914a8
commit a4d2de38f0
43 changed files with 150 additions and 150 deletions
+1 -1
View File
@@ -439,7 +439,7 @@ class programModel extends model
$executions = $this->loadModel('project')->getExecutionList(array_keys($projects));
if($this->cookie->projectType && $this->cookie->projectType == 'bycard')
{
$leftTasks = $this->dao->select('t2.parent as project, count(*) as tasks')->from(TABLE_TASK)->alias('t1')
$leftTasks = $this->dao->select('t2.parent as project, COUNT(1) AS tasks')->from(TABLE_TASK)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.execution = t2.id')
->where('t1.execution')->in(array_keys($executions))
->andWhere('t1.status')->notIn('cancel,closed')