推广员充值统计汇总为当前页面的总额,改为所有数据的总和

master
zhengyongxing 5 years ago
parent e8313dd92b
commit c1e16ed8d4

@ -513,7 +513,7 @@ class PlatformController extends ThinkController
setPowerPromoteIds($map);
$promote_map2 = array();
setPowerPromoteIds($promote_map2, 'id');
$promote = M("promote","tab_")->field("id,account")->page($page,$row)->where($promote_map)->where($promote_map2)->select();
$promote = M("promote","tab_")->field("id,account")->where($promote_map)->where($promote_map2)->select();
$pcount = M("promote","tab_")->field("count(*) acount")->where($promote_map)->where($promote_map2)->find()['acount'];
// var_dump( $promote);
@ -584,10 +584,11 @@ class PlatformController extends ThinkController
$this->assign('userarpu_order_type', $data_order_type);
}
$page = set_pagination($pcount, $row);
$page = set_pagination($count, $row);
if ($page) {
$this->assign('_page', $page);
}
$data = array_slice($data, ($arraypage - 1) * $row, $row);
$data = my_sort($data, $data_order_type, (int)$data_order);

Loading…
Cancel
Save