|
@@ -137,18 +137,17 @@ public class UserCenterServiceImpl extends ServiceImpl<UserDao, User> implements
|
|
|
UserEnterprise userEnterprise = userEnterpriseService.getOne(queryWrapper);
|
|
|
User user1 = userService.getById(uid);
|
|
|
|
|
|
- if (null!=userEnterprise){
|
|
|
+ if (null != userEnterprise) {
|
|
|
if (2 == user1.getIsEnterpriseUser()) {
|
|
|
response.setQyName(userEnterprise.getEnterpriseName());
|
|
|
response.setBmName(userEnterprise.getDepartment());
|
|
|
response.setRealName(userEnterprise.getRealName());
|
|
|
}
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
LambdaQueryWrapper<UserBypassAccount> queryWrapper1 = new LambdaQueryWrapper<>();
|
|
|
queryWrapper1.eq(UserBypassAccount::getUserId, uid);
|
|
|
UserBypassAccount userBypassAccount = userBypassAccountService.getOne(queryWrapper1);
|
|
|
- if(null!=userBypassAccount){
|
|
|
+ if (null != userBypassAccount) {
|
|
|
Integer enterpriseId = userBypassAccount.getEnterpriseId();
|
|
|
LambdaQueryWrapper<UserEnterprise> queryWrapper2 = new LambdaQueryWrapper<>();
|
|
|
queryWrapper2.eq(UserEnterprise::getId, enterpriseId);
|
|
@@ -157,7 +156,7 @@ public class UserCenterServiceImpl extends ServiceImpl<UserDao, User> implements
|
|
|
response.setQyName(userEnterprise1.getEnterpriseName());
|
|
|
response.setBmName(userBypassAccount.getDepartment());
|
|
|
response.setRealName(userBypassAccount.getRealName());
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
User byId = userService.getById(uid);
|
|
|
response.setQyName("");
|
|
|
response.setBmName("");
|