mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-03-05 19:50:45 +08:00
调整
This commit is contained in:
@@ -111,7 +111,7 @@ public class UserServiceImpl implements UserService {
|
||||
@Override
|
||||
public RetObj getEsId(Long userId) {
|
||||
Object user = EsUtil.getDocumentById(new EsBaseModel("user", String.valueOf(userId), null, User.class));
|
||||
if(Objects.nonNull(user)){
|
||||
if (Objects.nonNull(user)) {
|
||||
return RetObj.success(user);
|
||||
}
|
||||
return RetObj.error("es中不存在该用户");
|
||||
|
||||
Reference in New Issue
Block a user