Commit 5b9c00a9 authored by wujipeng's avatar wujipeng
Browse files

用户详情优化

parent 7aa0800b
...@@ -44,6 +44,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme ...@@ -44,6 +44,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
public UserVO getDetail(String userName, String caseId) { public UserVO getDetail(String userName, String caseId) {
UserEntity userEntity = baseMapper.selectOne(new LambdaQueryWrapper<UserEntity>() UserEntity userEntity = baseMapper.selectOne(new LambdaQueryWrapper<UserEntity>()
.eq(UserEntity::getUserName, userName)); .eq(UserEntity::getUserName, userName));
if(ObjectUtils.isEmpty(userEntity)){
return null;
}
UserVO userVO = DozerUtils.convertBean(userEntity, UserVO.class); UserVO userVO = DozerUtils.convertBean(userEntity, UserVO.class);
if (userVO != null) { if (userVO != null) {
//查看用户账户列表 //查看用户账户列表
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment