diff --git a/Application/Base/Repository/PromoteRepository.class.php b/Application/Base/Repository/PromoteRepository.class.php
index 514f7a734..ed7704485 100644
--- a/Application/Base/Repository/PromoteRepository.class.php
+++ b/Application/Base/Repository/PromoteRepository.class.php
@@ -48,7 +48,11 @@ class PromoteRepository {
if (isset($params['lock_status'])) {
$lockUserIds = M('user', 'tab_')->where(['lock_status' => 0, 'promote_id' => ['in', $allIds]])->getField('id', 'true');
if (count($lockUserIds) > 0) {
- $map['user_id'] = ['not in', $lockUserIds];
+ if ($params['lock_status'] == 1) {
+ $map['user_id'] = ['not in', $lockUserIds];
+ } else {
+ $map['user_id'] = ['in', $lockUserIds];
+ }
}
}
return $map;
diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php
index 8c36d5835..d5b30fd31 100644
--- a/Application/Home/Controller/QueryController.class.php
+++ b/Application/Home/Controller/QueryController.class.php
@@ -1990,9 +1990,9 @@ class QueryController extends BaseController
if ($costBegin != '' && $costEnd != '') {
$having = 'sum(cost) between ' . $costBegin . ' and ' . $costEnd;
} elseif ($costBegin != '' && $costEnd == '') {
- $having = 'sum(cost) > ' . $costBegin;
+ $having = 'sum(cost) >= ' . $costBegin;
} elseif ($costBegin == '' && $costEnd != '') {
- $having = 'sum(cost) < ' . $costEnd;
+ $having = 'sum(cost) <= ' . $costEnd;
}
$subMap = $map;
$subMap['pay_status'] = 1;
@@ -2088,7 +2088,7 @@ class QueryController extends BaseController
public function getGameServers()
{
$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([
'status' => 1,
'msg' => '成功',
diff --git a/Application/Home/View/default/Query/arpu.html b/Application/Home/View/default/Query/arpu.html
index cbd0971e5..546ef5c88 100644
--- a/Application/Home/View/default/Query/arpu.html
+++ b/Application/Home/View/default/Query/arpu.html
@@ -235,7 +235,7 @@