From 2a06c19ab3a45d596ba885cbc5b0f7f3990f7f19 Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 7 Aug 2025 15:40:06 +0800 Subject: [PATCH] * [perf] Implement lazy search parameter processing in executionModel::buildTaskSearchForm(). --- module/execution/model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 472adc91ef..cbd2d61e8a 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -4172,11 +4172,15 @@ class executionModel extends model * @param array $executions * @param int $queryID * @param string $actionURL + * @param bool $processParams 是否处理搜索参数。默认不处理可以提高性能,构造搜索表单时再处理。 * @access public * @return void */ - public function buildTaskSearchForm(int $executionID, array $executions, int $queryID, string $actionURL) + public function buildTaskSearchForm(int $executionID, array $executions, int $queryID, string $actionURL, bool $processParams = false) { + $module = $this->config->execution->search['module']; + if(!$processParams) return $this->cacheSearchParams($module, __CLASS__, __FUNCTION__, func_get_args()); + $showAll = empty($executionID) && empty($executions) ? true : false; if($showAll) {