Commit f7107658 authored by huyuchen's avatar huyuchen

huyc 部门根节点数值修改

parent 8ac021ed
...@@ -58,8 +58,14 @@ public class YifuUser extends User { ...@@ -58,8 +58,14 @@ public class YifuUser extends User {
@Getter @Getter
private String systemFlag; private String systemFlag;
/**
* 用户组
*/
@Getter
private final String userGroup;
public YifuUser(String id, Long deptId, String username, String nickname,String systemFlag, String password, String phone, boolean enabled, public YifuUser(String id, Long deptId, String username, String nickname,String systemFlag, String password, String phone, boolean enabled,
boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked,String userGroup,
Collection<? extends GrantedAuthority> authorities) { Collection<? extends GrantedAuthority> authorities) {
super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities); super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
this.id = id; this.id = id;
...@@ -67,6 +73,7 @@ public class YifuUser extends User { ...@@ -67,6 +73,7 @@ public class YifuUser extends User {
this.phone = phone; this.phone = phone;
this.nickname = nickname; this.nickname = nickname;
this.systemFlag = systemFlag; this.systemFlag = systemFlag;
this.userGroup = userGroup;
} }
} }
...@@ -70,8 +70,8 @@ public interface YifuUserDetailsService extends UserDetailsService, Ordered { ...@@ -70,8 +70,8 @@ public interface YifuUserDetailsService extends UserDetailsService, Ordered {
// 构造security用户 // 构造security用户
return new YifuUser(user.getUserId(), user.getDeptId(), user.getUsername(),user.getNickname(),user.getSystemFlag(), return new YifuUser(user.getUserId(), user.getDeptId(), user.getUsername(),user.getNickname(),user.getSystemFlag(),
SecurityConstants.BCRYPT + user.getPassword(), user.getPhone(), true, true, true, SecurityConstants.BCRYPT + user.getPassword(), user.getPhone(), true, true,
StrUtil.equals(user.getLockFlag(), CommonConstants.STATUS_NORMAL), authorities); true, StrUtil.equals(user.getLockFlag(), CommonConstants.STATUS_NORMAL), user.getUserGroup(),authorities);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment