* [refac bug #57819] Summary task count with parent and child task.

This commit is contained in:
wangyidong
2024-12-20 11:02:50 +08:00
committed by 孙广明
parent 127f15bb69
commit 04ccfb1d77
+2 -4
View File
@@ -131,10 +131,8 @@ class userTao extends userModel
{
if(!$executionIdList) return array();
return $this->dao->select('execution, COUNT(1) AS count')
->from(TABLE_TASK)
->where('parent')->lt(1)
->andWhere('deleted')->eq('0')
return $this->dao->select('execution, COUNT(1) AS count')->from(TABLE_TASK)
->where('deleted')->eq('0')
->andWhere('assignedTo')->eq($account)
->andWhere('execution')->in($executionIdList)
->groupBy('execution')