* [perf story #75387] Adjust for getDynamic method.

This commit is contained in:
wangyidong
2025-06-19 13:11:58 +08:00
parent a5ffd45202
commit 3138bfbbaf
12 changed files with 50 additions and 157 deletions
+1 -1
View File
@@ -2620,7 +2620,7 @@ class execution extends control
$date = empty($date) ? '' : date('Y-m-d', (int)$date);
$actions = $this->loadModel('action')->getDynamicByExecution($executionID, $account, $period, $orderBy, 50, $date, $direction);
$dateGroups = $this->action->buildDateGroup($actions, $direction);
if(empty($recTotal) && $dateGroups) $recTotal = count($dateGroups) < 2 ? count($dateGroups, 1) - count($dateGroups) : $this->action->getDynamicCount();
if(empty($recTotal) && $dateGroups) $recTotal = $this->action->getDynamicCount();
$this->view->title = $execution->name . $this->lang->hyphen . $this->lang->execution->dynamic;
$this->view->userIdPairs = $this->loadModel('user')->getTeamMemberPairs($executionID, 'execution', 'nodeleted|useid');