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

@@ -170,7 +170,7 @@ public class AppUser extends BaseEntity
private String domicileAddress;
@ApiModelProperty("浪潮userid")
private String lcUserid;
private Long lcUserid;
/** 1-大龄人员;2-低保人员;3-残疾人员;4-失地农名或联队职工;5-防止返贫;6-未就业大中专毕业生;7-退役军人;8-长期失业人员;9-城镇零就业家庭成员10.刑满释放人员 **/
@ApiModelProperty("用户类型,以逗号分隔")

View File

@@ -76,6 +76,11 @@ public class SysUser extends BaseEntity
//appUserId
private Long appUserId;
/**
* 浪潮用户lc_Userid
*/
private Long lcUserid;
//岗位名称组
private List<String> jobTitles;
@@ -341,6 +346,14 @@ public class SysUser extends BaseEntity
this.experience = experience;
}
public Long getLcUserid() {
return lcUserid;
}
public void setLcUserid(Long lcUserid) {
this.lcUserid = lcUserid;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -367,6 +380,7 @@ public class SysUser extends BaseEntity
.append("appUserId", getAppUserId())
.append("jobTitles", getJobTitles())
.append("experience", getExperience())
.append("lcUserid", getLcUserid())
.toString();
}
}

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