From 14b5ea78cdb68ced74de4fee23008201fd269b88 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Wed, 19 Feb 2020 10:00:45 +0800 Subject: [PATCH] upt --- Application/Admin/Controller/GameController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index 61be35f1c..ebedb84e4 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -878,7 +878,8 @@ class GameController extends ThinkController ->where(array_merge($map)) ->group('pdw.id, p.partner') ->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)) { foreach ($list as &$item) { $item['total_amount'] = M('spend', 'tab_')->where(['pay_status'=>1, 'game_id'=>['in',explode(',', $item['game_id'])]])->sum('pay_amount');