Merge branch 'hotfix/change_cp_time' of wmtx/platform into master

优化检索
master
廖金灵 5 years ago committed by Gogs
commit 697a975ca6

@ -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);
} }

@ -178,9 +178,9 @@ 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(); $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); // 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);
} }

@ -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);
} }

@ -81,7 +81,7 @@ class GameRatioMouldController extends AdminController
$count = $this->DBModel->alias('m')->field("count(id) count")->join("INNER JOIN ({$gameres}) g ON m.relation_game_id = g.relation_game_id")->where($where)->find()['count']; $count = $this->DBModel->alias('m')->field("count(id) count")->join("INNER JOIN ({$gameres}) g ON m.relation_game_id = g.relation_game_id")->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);
} }

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