优化检索

master
chenzhi 5 years ago
parent 24100fe0a9
commit 587d7913ca

@ -143,7 +143,7 @@ class CompanyGameRatioController extends AdminController
->join("JOIN tab_promote_company p ON ( m.company_id = p.id".$pwhere.")") ->join("JOIN tab_promote_company p ON ( m.company_id = p.id".$pwhere.")")
->where($where)->find()['count']; ->where($where)->find()['count'];
$this->assign('data', $dbres); $this->assign('data', $dbres);
$page = set_pagination($count, $row); $page = set_pagination($count, $row,$params);
if($page) { if($page) {
$this->assign('_page', $page); $this->assign('_page', $page);
} }
@ -317,7 +317,7 @@ class CompanyGameRatioController extends AdminController
->join("JOIN tab_promote_company p ON ( m.company_id = p.id".$pwhere.")") ->join("JOIN tab_promote_company p ON ( m.company_id = p.id".$pwhere.")")
->where($where)->find()['count']; ->where($where)->find()['count'];
$this->assign('data', $dbres); $this->assign('data', $dbres);
$page = set_pagination($count, $row); $page = set_pagination($count, $row,$params);
if($page) { if($page) {
$this->assign('_page', $page); $this->assign('_page', $page);
} }

@ -107,7 +107,7 @@ class CompanyRelationController extends AdminController
$count = $this->DBModel->field("count(id) count")->where($where)->find()['count']; $count = $this->DBModel->field("count(id) count")->where($where)->find()['count'];
$this->assign('data', $dbres); $this->assign('data', $dbres);
$page = set_pagination($count, $row); $page = set_pagination($count, $row,$params);
if($page) { if($page) {
$this->assign('_page', $page); $this->assign('_page', $page);
} }
@ -223,7 +223,7 @@ class CompanyRelationController extends AdminController
$count = $this->DBlogModel->field("count(id) count")->where($where)->find()['count']; $count = $this->DBlogModel->field("count(id) count")->where($where)->find()['count'];
$this->assign('data', $dbres); $this->assign('data', $dbres);
$page = set_pagination($count, $row); $page = set_pagination($count, $row,$params);
if($page) { if($page) {
$this->assign('_page', $page); $this->assign('_page', $page);
} }

@ -180,7 +180,7 @@ class CompanyStatementController extends ThinkController
// dd($count); // dd($count);
$parameter['p'] = $page; $parameter['p'] = $page;
$parameter['row'] = $row; $parameter['row'] = $row;
$page = set_pagination($count['count'], $row, $parameter); $page = set_pagination($count['count'], $row, $params);
if ($page) { if ($page) {
$this->assign('_page', $page); $this->assign('_page', $page);
} }

@ -83,9 +83,9 @@ class CompanyStatementLackController extends ThinkController
$count = $this->DBModel->field("count(id) count,sum(statement_money) statement_money")->where($map)->find(); $count = $this->DBModel->field("count(id) count,sum(statement_money) statement_money")->where($map)->find();
// dd($count); // dd($count);
$parameter['p'] = $page; $params['p'] = $page;
$parameter['row'] = $row; $params['row'] = $row;
$page = set_pagination($count['count'], $row, $parameter); $page = set_pagination($count['count'], $row, $params);
if ($page) { if ($page) {
$this->assign('_page', $page); $this->assign('_page', $page);
} }

@ -165,9 +165,9 @@ class CompanyStatementPoolController extends ThinkController
} }
$count = $this->DBModel->field("count(id) count,SUM(statement_money) as statement_money")->where($map)->find(); $count = $this->DBModel->field("count(id) count,SUM(statement_money) as statement_money")->where($map)->find();
// dd($count); // dd($count);
$parameter['p'] = $page; $params['p'] = $page;
$parameter['row'] = $row; $params['row'] = $row;
$page = set_pagination($count['count'], $row, $parameter); $page = set_pagination($count['count'], $row, $params);
if ($page) { if ($page) {
$this->assign('_page', $page); $this->assign('_page', $page);
} }

@ -252,9 +252,6 @@
</div> </div>
<div class="page"> <div class="page">
<if condition="$role_export_check eq true ">
<!-- <a class="sch-btn" href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}" target="_blank">导出</a> -->
</if>
{$_page|default=''} {$_page|default=''}
</div> </div>
<div style="width: 100vw;height: 100vh;padding: 0;position: absolute;top: 0;z-index: 9999;display: none;" id="creat_msg"> <div style="width: 100vw;height: 100vh;padding: 0;position: absolute;top: 0;z-index: 9999;display: none;" id="creat_msg">

Loading…
Cancel
Save