Search in sources :

Example 1 with AgilePersonInfo

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;
}
Also used : AgilePersonInfo(com.jeeagile.system.vo.AgilePersonInfo) AgileSysUser(com.jeeagile.system.entity.AgileSysUser) AgileBaseUser(com.jeeagile.core.security.user.AgileBaseUser)

Aggregations

AgileBaseUser (com.jeeagile.core.security.user.AgileBaseUser)1 AgileSysUser (com.jeeagile.system.entity.AgileSysUser)1 AgilePersonInfo (com.jeeagile.system.vo.AgilePersonInfo)1