master
yulingwei 5 years ago
parent 37c4e8ab73
commit 14b5ea78cd

@ -878,7 +878,8 @@ class GameController extends ThinkController
->where(array_merge($map)) ->where(array_merge($map))
->group('pdw.id, p.partner') ->group('pdw.id, p.partner')
->page($p, $row)->select(); ->page($p, $row)->select();
$count = M('partner_divide_warn', 'tab_')->alias('pdw')->join("tab_game g on pdw.partner_id = g.partner_id", 'left')->where($map)->count(); $count = M('partner_divide_warn', 'tab_')->alias('pdw')->join("tab_game g on pdw.partner_id = g.partner_id", 'left')->group('pdw.id')->where($map)->count();
echo M()->getLastSql();exit;
if (!empty($list)) { if (!empty($list)) {
foreach ($list as &$item) { foreach ($list as &$item) {
$item['total_amount'] = M('spend', 'tab_')->where(['pay_status'=>1, 'game_id'=>['in',explode(',', $item['game_id'])]])->sum('pay_amount'); $item['total_amount'] = M('spend', 'tab_')->where(['pay_status'=>1, 'game_id'=>['in',explode(',', $item['game_id'])]])->sum('pay_amount');

Loading…
Cancel
Save