| | |
| | | //专业 |
| | | smUserVO.setSpecialties(userInfo.specialties); |
| | | UserLogonInfo lockObj = platformClientUtil.getFrameworkService().fetchUserLogonObj(userInfo.id); |
| | | smUserVO.setLockFlag(lockObj.plWrongNum == 0); |
| | | smUserVO.setLockFlag(lockObj.plWrongNum != 0); |
| | | smUserVO.setCreator(userInfo.createUser); |
| | | smUserVO.setCreateTime(VciDateUtil.long2Date(userInfo.createTime)); |
| | | smUserVO.setLastModifier(userInfo.updateUser); |
| | |
| | | return userNameList; |
| | | } |
| | | |
| | | /** |
| | | * 使用当前用户的类型查询用户 |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | @Override |
| | | public List<SmUserVO> listUserByUserType() throws PLException { |
| | | try { |
| | | UserInfo[] userInfo = platformClientUtil.getFrameworkService().fetchUserInfoByType(Short.parseShort(WebUtil.getCurrentUserSessionInfo().getUsertype())); |
| | | return userInfoArr2VO(userInfo); |
| | | } catch (PLException e) { |
| | | throw new VciBaseException("登录时,获取用户信息失败:"+e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | } |