use of com.jeeagile.system.vo.AgilePersonInfo in project jeeagile by jeeagile.
the class AgileSysPersonServiceImpl method getPersonInfo.
@Override
public AgilePersonInfo getPersonInfo() {
AgilePersonInfo agilePersonInfo = new AgilePersonInfo();
AgileBaseUser userData = getCurrentUserData();
AgileSysUser agileSysUser = agileSysUserService.getById(userData.getUserId());
if (agileSysUser != null && AgileStringUtil.isNotEmpty(agileSysUser.getId())) {
BeanUtils.copyProperties(agileSysUser, agilePersonInfo);
agilePersonInfo.setDeptName(userData.getDeptName());
List<String> roleNameList = agileSysPersonMapper.getRoleNameByUserId(agileSysUser.getId());
List<String> postNameList = agileSysPersonMapper.getPostNameByUserId(agileSysUser.getId());
agilePersonInfo.setRoleNameList(roleNameList);
agilePersonInfo.setPostNameList(postNameList);
}
return agilePersonInfo;
}
Aggregations