|
|
|
@ -53,6 +53,10 @@ class PromoteRepository {
|
|
|
|
|
} else {
|
|
|
|
|
$map['user_id'] = ['in', $lockUserIds];
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if ($params['lock_status'] == 2) {
|
|
|
|
|
$map['_string'] = ' 1<>1';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return $map;
|
|
|
|
@ -218,7 +222,11 @@ class PromoteRepository {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$subQuery = M('user_play_info', 'tab_')->field('user_id')->group('user_id')->where($subMap)->buildSql();
|
|
|
|
|
$map['_string'] = ' user_id not in (' . $subQuery . ')';
|
|
|
|
|
if (isset($map['_string'])) {
|
|
|
|
|
$map['_string'] .= ' and user_id not in (' . $subQuery . ')';
|
|
|
|
|
} else {
|
|
|
|
|
$map['_string'] = ' user_id not in (' . $subQuery . ')';
|
|
|
|
|
}
|
|
|
|
|
$inQuery = M('user_play_info', 'tab_')->field('user_id')->group('user_id')->where($map)->buildSql();
|
|
|
|
|
|
|
|
|
|
$resultMap = ['_string' => 'user_id in (' . $inQuery . ')'];
|
|
|
|
|