mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
用户详细,如果机构不存在报错的问题
This commit is contained in:
@@ -147,7 +147,10 @@ public class UserApi extends ApiBaseController {
|
||||
user.setDynamic(u.getDynamic());
|
||||
if (StringUtils.isNotBlank(user.getDepartId())) {
|
||||
Organization org = organizationService.get(user.getDepartId());
|
||||
user.setDepartName(org.getName());
|
||||
if(org!=null) {
|
||||
user.setDepartName(org.getName());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return success(user);
|
||||
|
||||
Reference in New Issue
Block a user