From bc3f4f02d39daead177d1376282d2094163e1a2f Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 1 Mar 2021 13:40:50 +0800 Subject: [PATCH] =?UTF-8?q?2.28=E5=8F=B7=E5=8A=9F=E8=83=BD=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/SubCompanyStatementPoolController.class.php | 5 ++++- Application/Admin/View/SubCompanyStatementPool/lists.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/SubCompanyStatementPoolController.class.php b/Application/Admin/Controller/SubCompanyStatementPoolController.class.php index 1d0eac592..e8b63c307 100644 --- a/Application/Admin/Controller/SubCompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/SubCompanyStatementPoolController.class.php @@ -125,6 +125,8 @@ class SubCompanyStatementPoolController extends ThinkController $v['oplist'] = $this->OpWmAuth($v); } + $sum = $this->DBModel->field("sum(sum_money) sum_money")->where($map)->find(); + $count = $this->DBModel->field("count(id) count")->where($map)->find(); // dd($count); $params['p'] = $page; @@ -133,7 +135,8 @@ class SubCompanyStatementPoolController extends ThinkController if ($page) { $this->assign('_page', $page); } - + + $this->assign("sum",$sum); $this->assign('data',$data); $this->assign('count',$count); $this->display(); diff --git a/Application/Admin/View/SubCompanyStatementPool/lists.html b/Application/Admin/View/SubCompanyStatementPool/lists.html index 78168727a..d758d5abb 100644 --- a/Application/Admin/View/SubCompanyStatementPool/lists.html +++ b/Application/Admin/View/SubCompanyStatementPool/lists.html @@ -129,7 +129,7 @@ - 合计结算总金额: {$count.statement_money}     不结算总金额:{$count.lack_statement_money}    + 合计结算总金额: {$sum.sum_money}