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 @@ -