优化公会统计bug

master
chenzhi 5 years ago
parent ae7d79a751
commit 2401acb9a0

@ -861,6 +861,8 @@ SUM(CASE WHEN pay_way = -1 THEN pay_amount ELSE 0 END) as inside_cash_count,g.sd
$query = M("Spend s use index(game_time)","tab_")
->field("game_id")
->join('LEFT JOIN tab_game as g ON s.game_id=g.id')
->join('LEFT JOIN tab_partner as p ON g.partner_id=p.id')
->where(['s.pay_status' => 1, 'pay_game_status' => 1])
->where($map)
->group('s.game_id');

Loading…
Cancel
Save