From 2fa4a2aaf6523467e2dfb8b784695ecee0b072a8 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 30 Sep 2024 01:22:30 +0000 Subject: [PATCH] * [bug#55754,done,0.2h] fix bug. --- module/action/tao.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/action/tao.php b/module/action/tao.php index 266fdbd0f0..2b5824fa40 100644 --- a/module/action/tao.php +++ b/module/action/tao.php @@ -668,7 +668,9 @@ class actionTao extends actionModel */ public function getActionListByCondition(string $condition, string $date, string $begin, string $end, string $account, string|int $productID, string|int $projectID, string|int $executionID, array|string $executions, string $actionCondition, string $orderBy, int $limit = 50): array|bool { - $actionTable = in_array($period, $this->config->action->latestDateList) ? TABLE_ACTIONRECENT : TABLE_ACTION; + /* 获取最近一个月的动态用actionrecent表。 */ + $lastMonth = date('Y-m-d', strtotime('-1 month')); + $actionTable = ($begin >= $lastMonth && $end >= $lastMonth) ? TABLE_ACTIONRECENT : TABLE_ACTION; return $this->dao->select('*')->from($actionTable) ->where('objectType')->notIN($this->config->action->ignoreObjectType4Dynamic)