mirror of https://gitee.com/topiam/eiam
⚡ 完善系统管理员添加手机号码、邮箱地址查询条件
parent
b25b275e7d
commit
519e3d1e79
|
@ -144,6 +144,8 @@ public interface AdministratorConverter {
|
|||
//查询条件
|
||||
//@formatter:off
|
||||
predicate = StringUtils.isBlank(query.getUsername()) ? predicate : ExpressionUtils.and(predicate, user.username.eq(query.getUsername()));
|
||||
predicate = StringUtils.isBlank(query.getPhone()) ? predicate : ExpressionUtils.and(predicate, user.phone.like("%" + query.getPhone() + "%"));
|
||||
predicate = StringUtils.isBlank(query.getEmail()) ? predicate : ExpressionUtils.and(predicate, user.email.like("%" + query.getEmail() + "%"));
|
||||
//@formatter:on
|
||||
return predicate;
|
||||
}
|
||||
|
|
|
@ -37,4 +37,14 @@ public class AdministratorListQuery {
|
|||
*/
|
||||
@Parameter(description = "用户名")
|
||||
private String username;
|
||||
/**
|
||||
* phone
|
||||
*/
|
||||
@Parameter(description = "手机号码")
|
||||
private String phone;
|
||||
/**
|
||||
* email
|
||||
*/
|
||||
@Parameter(description = "邮箱地址")
|
||||
private String email;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue