From 04ccfb1d778301a44d1e34c33ee00f570243ca2e Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 20 Dec 2024 09:17:34 +0800 Subject: [PATCH] * [refac bug #57819] Summary task count with parent and child task. --- module/user/tao.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/user/tao.php b/module/user/tao.php index 9be999e903..3dcd8e28cc 100644 --- a/module/user/tao.php +++ b/module/user/tao.php @@ -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')