From 89fdaa8f39c7eef9e3403120e6f7624dffbee327 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sun, 18 Sep 2022 11:57:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B5=84=E6=BA=90-=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/TestingResourceController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/TestingResourceController.class.php b/Application/Admin/Controller/TestingResourceController.class.php index 9b71cc830..45784c0fd 100644 --- a/Application/Admin/Controller/TestingResourceController.class.php +++ b/Application/Admin/Controller/TestingResourceController.class.php @@ -821,12 +821,12 @@ class TestingResourceController extends ThinkController $query = M('testing_resource_batch_list', 'tab_')->where($conditions)->order('create_time desc'); + [$records, $page, $count] = $this->paginate($query); + $totalRow = M('testing_resource_batch_list', 'tab_')->field('sum(provide_amount) provide_amount_total')->where($conditions)->find(); $total = $totalRow['provide_amount_total'] ?? 0; - [$records, $page, $count] = $this->paginate($query); - $gameRepository = new GameRepository(); $this->assign('statusList', TestingResourceRepository::$userStatusList);