修改查询所有求职者接口和获取求职者详情接口

This commit is contained in:
chenshaohua
2026-06-17 19:11:55 +08:00
parent c368e3590a
commit 56385fbfab
3 changed files with 11 additions and 1 deletions

View File

@@ -63,6 +63,8 @@ public class CmsAppUserController extends BaseController
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(AppUser appUser) public TableDataInfo list(AppUser appUser)
{ {
//只查询求职者
appUser.setIsCompanyUser(StringUtil.IS_JOB_REQUEST_USER);
startPage(); startPage();
List<AppUser> list = appUserService.selectAppUserList(appUser); List<AppUser> list = appUserService.selectAppUserList(appUser);
//身份证脱敏 //身份证脱敏
@@ -90,7 +92,7 @@ public class CmsAppUserController extends BaseController
* 获取APP用户详细信息 * 获取APP用户详细信息
*/ */
@ApiOperation("获取APP用户详细信息") @ApiOperation("获取APP用户详细信息")
@PreAuthorize("@ss.hasPermi('bussiness:user:query')") @PreAuthorize("@ss.hasPermi('cms:appUser:query')")
@GetMapping(value = "/{userId}") @GetMapping(value = "/{userId}")
public AjaxResult getInfo(@PathVariable("userId") Long userId) public AjaxResult getInfo(@PathVariable("userId") Long userId)
{ {

View File

@@ -61,6 +61,8 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
if (appUser == null) { if (appUser == null) {
return null; return null;
} }
//处理身份证脱敏
appUser.setIdCard(StringUtil.desensitizeIdCard(appUser.getIdCard()));
if(StringUtils.isNotEmpty(appUser.getJobTitleId())){ if(StringUtils.isNotEmpty(appUser.getJobTitleId())){
List<String> list = Arrays.asList(appUser.getJobTitleId().split(",")); List<String> list = Arrays.asList(appUser.getJobTitleId().split(","));
List<Long> collect = list.stream().map(Long::valueOf).collect(Collectors.toList()); List<Long> collect = list.stream().map(Long::valueOf).collect(Collectors.toList());
@@ -87,6 +89,11 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
skill.setUserId(appUser.getUserId()); skill.setUserId(appUser.getUserId());
List<AppSkill> skillList=appSkillMapper.getList(skill); List<AppSkill> skillList=appSkillMapper.getList(skill);
appUser.setAppSkillsList(skillList); appUser.setAppSkillsList(skillList);
File file=new File();
file.setBussinessid(userId);
List<File> files=fileMapper.selectFileList(file);
appUser.setFileList(files);
} }
return appUser; return appUser;
} }

View File

@@ -58,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="experience != null "> and experience = #{experience}</if> <if test="experience != null "> and experience = #{experience}</if>
<if test="idCard != null and idCard != ''"> and id_card like concat('%', CAST(#{idCard} AS VARCHAR), '%')</if> <if test="idCard != null and idCard != ''"> and id_card like concat('%', CAST(#{idCard} AS VARCHAR), '%')</if>
<if test="userId != null"> and user_id = #{userId}</if> <if test="userId != null"> and user_id = #{userId}</if>
<if test="isCompanyUser">and is_company_user =#{isCompanyUser}</if>
</where> </where>
</select> </select>
<select id="selectByJobId" resultType="com.ruoyi.common.core.domain.entity.AppUser" parameterType="java.lang.Long"> <select id="selectByJobId" resultType="com.ruoyi.common.core.domain.entity.AppUser" parameterType="java.lang.Long">