This commit is contained in:
parent
a3da38fc42
commit
eb0a58f81d
|
|
@ -115,7 +115,8 @@ public class TokenController {
|
|||
String jwtToken = SecurityUtils.getToken(request);
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
String isAdmin = loginUser.getSysUser().getIsAdmin();
|
||||
if(!Objects.equals(isAdmin, Constant.IS_ADMIN)){
|
||||
String loginType = loginUser.getSysUser().getLoginType();
|
||||
if(!Objects.equals(isAdmin, Constant.IS_ADMIN) || !Objects.equals(loginType, Constant.BACK_LOGIN)){
|
||||
return Result.fail("用户无访问后台权限");
|
||||
}
|
||||
// 获取登录token
|
||||
|
|
|
|||
|
|
@ -65,12 +65,15 @@ public class HumanManageVo {
|
|||
private String proName;
|
||||
|
||||
@ApiModelProperty(value = "单位名称")
|
||||
@Length(max = 255, message = "单位名称字符长度不能超过30", groups = {Query.class})
|
||||
private String deptName;
|
||||
|
||||
@ApiModelProperty(value = "项目部名称")
|
||||
@Length(max = 255, message = "项目部名称字符长度不能超过255", groups = {Query.class})
|
||||
private String projectDepName;
|
||||
|
||||
@ApiModelProperty(value = "人员类型")
|
||||
@Length(max = 32, message = "人员类型字符长度不能超过32", groups = {Query.class})
|
||||
private String personType;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
|
|
|
|||
Loading…
Reference in New Issue