|
|
@ -1990,9 +1990,9 @@ class QueryController extends BaseController
|
|
|
|
if ($costBegin != '' && $costEnd != '') {
|
|
|
|
if ($costBegin != '' && $costEnd != '') {
|
|
|
|
$having = 'sum(cost) between ' . $costBegin . ' and ' . $costEnd;
|
|
|
|
$having = 'sum(cost) between ' . $costBegin . ' and ' . $costEnd;
|
|
|
|
} elseif ($costBegin != '' && $costEnd == '') {
|
|
|
|
} elseif ($costBegin != '' && $costEnd == '') {
|
|
|
|
$having = 'sum(cost) > ' . $costBegin;
|
|
|
|
$having = 'sum(cost) >= ' . $costBegin;
|
|
|
|
} elseif ($costBegin == '' && $costEnd != '') {
|
|
|
|
} elseif ($costBegin == '' && $costEnd != '') {
|
|
|
|
$having = 'sum(cost) < ' . $costEnd;
|
|
|
|
$having = 'sum(cost) <= ' . $costEnd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$subMap = $map;
|
|
|
|
$subMap = $map;
|
|
|
|
$subMap['pay_status'] = 1;
|
|
|
|
$subMap['pay_status'] = 1;
|
|
|
@ -2088,7 +2088,7 @@ class QueryController extends BaseController
|
|
|
|
public function getGameServers()
|
|
|
|
public function getGameServers()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
$servers = M('server', 'tab_')->field(['id', 'server_id', 'server_name'])->where(['game_id' => $gameId])->select();
|
|
|
|
$servers = M('server', 'tab_')->field(['id', 'server_id', 'server_name'])->where(['game_id' => $gameId])->order('server_id asc')->select();
|
|
|
|
$this->ajaxReturn([
|
|
|
|
$this->ajaxReturn([
|
|
|
|
'status' => 1,
|
|
|
|
'status' => 1,
|
|
|
|
'msg' => '成功',
|
|
|
|
'msg' => '成功',
|
|
|
|