项目业务
-
通过电子健康档案管理系统这个平台,可以实现人员健康情况的信息化、网络化、系统化、规范化管理,从繁杂的数据查询和统计中解脱出来,更好的掌握人员健康状况。系统的主要功能包括:人员档案管理、体检管理与疾病信息管理。
本系统前台主要使用Vue作为开发语言,后台使用mysql作为数据库管理系统,开发环境是Idea,开发出的一个基于Web技术的C/S结构的电子健康档案管理系统。本系统最大的特点是使用操作简单、友好的提示信息。本系统将实现以下基本功能:
(1)系统具有简洁大方的页面,使用简便,友好的错误操作提示
(2)管理员用户具有人员档案管理、健康体检管理、疾病信息管理、系统管理功
能
(3)具有较强的安全性,避免用户的恶意操作
数据库设计
使用技术
S基于Springboot+Vue+Sercurity
附登陆实现方法代码
@Autowired
private UserService userService;
@Resource
private ResourcesDao resourcesDao;
@Autowired
private RoleService roleService;
@Override
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principalCollection) {
User user = (User) principalCollection.fromRealm(this.getClass().getName()).iterator().next();
Set permissionSet = new HashSet<>();
SimpleAuthorizationInfo info = new SimpleAuthorizationInfo();
Role role = roleService.selectByKey(user.getRoleId());
List roleResource = resourcesDao.findRoleResource(user.getRoleId(),null);
if (!CollectionUtils.isEmpty(roleResource)){
roleResource.forEach(v->{
if (!StringUtils.isEmpty(v.getPermission())){
permissionSet.add(v.getPermission());
}
});
}
info.addRole(role.getRoleName());
info.setStringPermissions(permissionSet);
return info;
}
@Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken){
UsernamePasswordToken usernamePasswordToken = (UsernamePasswordToken) authenticationToken;
String username = usernamePasswordToken.getUsername();
User user = userService.findByUsername(username);
if (Objects.isNull(user)){
throw new MyException(ExceptionEnums.ACCOUNT_IS_NOT_EXIT);
}
return new SimpleAuthenticationInfo(user, user.getPassword(), this.getClass().getName());
}
实现效果



