1.添加修改求职者密码

2.添加修改管理员修改个人和企业密码接口
3.添加启用和禁用企业
This commit is contained in:
chenshaohua
2026-07-09 22:57:07 +08:00
parent 82926100d0
commit 5910a5d4b4
13 changed files with 244 additions and 23 deletions

View File

@@ -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);
}
}
}

View File

@@ -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);
}
}
}