| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Optional<SystemUser> getSystemUserByPhone(String phone) { |
| | | public Optional<SystemUser> getSystemUserAdminByPhone(String phone) { |
| | | if (StringUtils.isBlank(phone)) { |
| | | return Optional.empty(); |
| | | } |
| | |
| | | .eq(SystemUser::getIsAdmin, 1).last("LIMIT 1").oneOpt(); |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public Optional<SystemUser> getSystemUserByPhone(String phone) { |
| | | if (StringUtils.isBlank(phone)) { |
| | | return Optional.empty(); |
| | | } |
| | | return this.lambdaQuery() |
| | | .eq(SystemUser::getPhone, phone).ne(SystemUser::getStatus, 3).last("LIMIT 1").oneOpt(); |
| | | } |
| | | |
| | | /** |
| | | * 获取行政区划数据 |