1.添加修改求职者密码
2.添加修改管理员修改个人和企业密码接口 3.添加启用和禁用企业
This commit is contained in:
@@ -2,8 +2,8 @@ package com.ruoyi.common.utils;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.security.core.context.SecurityContextHolder;
|
||||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||
@@ -189,4 +189,33 @@ public class SecurityUtils
|
||||
.anyMatch(x -> Constants.SUPER_ADMIN.equals(x) || PatternMatchUtils.simpleMatch(x, role));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取浪潮用户ID
|
||||
**/
|
||||
public static Long getlcUserid()
|
||||
{
|
||||
try
|
||||
{
|
||||
return getLoginUser().getUser().getLcUserid();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new ServiceException("获取用户ID异常", HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public static Long getAppuserId()
|
||||
{
|
||||
try
|
||||
{
|
||||
return getLoginUser().getUser().getAppUserId();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new ServiceException("获取用户ID异常", HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,4 +119,20 @@ public class SiteSecurityUtils
|
||||
throw new ServiceException("获取用户信息异常", HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取lc_userid
|
||||
* @return
|
||||
*/
|
||||
public static Long getlcUserid()
|
||||
{
|
||||
try
|
||||
{
|
||||
return getLoginSiteUser().getUser().getLcUserid();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new ServiceException("获取用户ID异常", HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user