diff --git a/Application/Admin/Controller/FinanceController.class.php b/Application/Admin/Controller/FinanceController.class.php index e19ce3fd6..dfd0b9d20 100644 --- a/Application/Admin/Controller/FinanceController.class.php +++ b/Application/Admin/Controller/FinanceController.class.php @@ -893,7 +893,11 @@ class FinanceController extends ThinkController $this->checkListOrCountAuthRestMap($map,[]); - $testWhere['_string'] .= ' and game_id in(' . implode(',', $exceptIds) . ')'; + if (count($exceptIds) > 0) { + $testWhere['_string'] .= ' and game_id in(' . implode(',', $exceptIds) . ')'; + } else { + $testWhere['_string'] .= ' and 1=0'; + } $testAllAmount = M('test_order', 'tab_')->where($testWhere)->sum('pay_amount'); //统计合计