From 84950bd0a4b032ef60f9f591627cfa2a7f7e1ec3 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sun, 18 Sep 2022 11:43:01 +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 --- .../Controller/TestingResourceController.class.php | 5 +++++ .../Admin/View/TestingResource/batchList.html | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Application/Admin/Controller/TestingResourceController.class.php b/Application/Admin/Controller/TestingResourceController.class.php index 6c1d35b6b..9614bb117 100644 --- a/Application/Admin/Controller/TestingResourceController.class.php +++ b/Application/Admin/Controller/TestingResourceController.class.php @@ -821,6 +821,10 @@ class TestingResourceController extends ThinkController $query = M('testing_resource_batch_list', 'tab_')->where($conditions)->order('create_time desc'); + $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(); @@ -828,6 +832,7 @@ class TestingResourceController extends ThinkController $this->assign('statusList', TestingResourceRepository::$userStatusList); $this->assign('games', $gameRepository->getChoiceGames()); $this->assign('count', $count); + $this->assign('total', $total); $this->assign('records', $records); $this->assign('_page', $page); $this->display(); diff --git a/Application/Admin/View/TestingResource/batchList.html b/Application/Admin/View/TestingResource/batchList.html index c499352cc..07d20672c 100644 --- a/Application/Admin/View/TestingResource/batchList.html +++ b/Application/Admin/View/TestingResource/batchList.html @@ -119,7 +119,7 @@ -
汇总 | ++ 发放汇总金额:{$total} + | +