Merge branch 'hotfix/query' into dev

master
ELF 5 years ago
commit 260e45f4d9

@ -48,7 +48,11 @@ class PromoteRepository {
if (isset($params['lock_status'])) { if (isset($params['lock_status'])) {
$lockUserIds = M('user', 'tab_')->where(['lock_status' => 0, 'promote_id' => ['in', $allIds]])->getField('id', 'true'); $lockUserIds = M('user', 'tab_')->where(['lock_status' => 0, 'promote_id' => ['in', $allIds]])->getField('id', 'true');
if (count($lockUserIds) > 0) { if (count($lockUserIds) > 0) {
if ($params['lock_status'] == 1) {
$map['user_id'] = ['not in', $lockUserIds]; $map['user_id'] = ['not in', $lockUserIds];
} else {
$map['user_id'] = ['in', $lockUserIds];
}
} }
} }
return $map; return $map;

@ -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' => '成功',

@ -235,7 +235,7 @@
<script type="text/javascript" src="__JS__/20170831/tabpage.js"></script> <script type="text/javascript" src="__JS__/20170831/tabpage.js"></script>
<eq name='timeout' value='1'> <eq name='timeout' value='1'>
<script> <script>
layer.msg('时间间隔不能超过90天'); layer.msg('时间间隔不能超过30天');
</script> </script>
</eq> </eq>
<script> <script>

Loading…
Cancel
Save