|
|
@@ -90,7 +90,7 @@ public class CmsUserController{
|
|
|
private final List<Long> no_blacks_userIds = List.of(375274l, 545599l, 523937l, 507498l, 604146l, 613437l, 651728l, 614100l, 604148l);
|
|
|
|
|
|
@GetMapping("/get")
|
|
|
- public Result<SearchResult<UserView>> get(Long id, String otherPhone, Long sharedId, String userid, Long businessId, String sort, String order, Boolean isCert, Boolean isAbroad) {
|
|
|
+ public Result<SearchResult<UserView>> get(Long id, String otherPhone, Long sharedId, String userid, Long businessId, String sort, String order, Boolean isCert, Boolean isAbroad, Boolean isVip) {
|
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
String otherSql = StrUtil.EMPTY;
|
|
|
if (StrUtil.isNotBlank(otherPhone)) {
|
|
|
@@ -124,6 +124,12 @@ public class CmsUserController{
|
|
|
}
|
|
|
otherSql += String.format(" %s (select 1 from phone_code pc where pc.phone = u.login_phone and cid is not null and cid != 86)", isAbroad ? "exists" : "not exists");
|
|
|
}
|
|
|
+ if (isVip != null) {
|
|
|
+ if (StrUtil.isNotBlank(otherSql)) {
|
|
|
+ otherSql += " and ";
|
|
|
+ }
|
|
|
+ otherSql += String.format(" %s (select 1 from vip_user vu where vu.user_id = u.id and vu.expiry_time > now())", isVip ? "exists" : "not exists");
|
|
|
+ }
|
|
|
if (StrUtil.isNotBlank(otherSql)) {
|
|
|
builder.put("otherConditionSql", otherSql);
|
|
|
}
|