+ userTao: return empty array if the passed parameter is empty.

This commit is contained in:
liugang
2023-12-25 14:58:41 +08:00
parent 3574663bb1
commit cb50ce5ada
+2
View File
@@ -129,6 +129,8 @@ class userTao extends userModel
*/
public function fetchExecutionTaskCount(string $account, array $executionIdList): array
{
if(!$executionIdList) return array();
return $this->dao->select('execution, COUNT(1) AS count')
->from(TABLE_TASK)
->where('parent')->lt(1)