|
|
|
@ -178,8 +178,8 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
$count = M("company_statement","tab_")->field("count(id) count,IFNULL(SUM(CASE WHEN withdraw_type < 2 THEN platform_amount ELSE 0 END),0) as platform_amount,SUM(statement_money) as statement_money")->where($map)->find();
|
|
|
|
|
// dd($count);
|
|
|
|
|
$parameter['p'] = $page;
|
|
|
|
|
$parameter['row'] = $row;
|
|
|
|
|
$params['p'] = $page;
|
|
|
|
|
$params['row'] = $row;
|
|
|
|
|
$page = set_pagination($count['count'], $row, $params);
|
|
|
|
|
if ($page) {
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|