修改查询所有求职者接口和获取求职者详情接口
This commit is contained in:
@@ -63,6 +63,8 @@ public class CmsAppUserController extends BaseController
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(AppUser appUser)
|
||||
{
|
||||
//只查询求职者
|
||||
appUser.setIsCompanyUser(StringUtil.IS_JOB_REQUEST_USER);
|
||||
startPage();
|
||||
List<AppUser> list = appUserService.selectAppUserList(appUser);
|
||||
//身份证脱敏
|
||||
@@ -90,7 +92,7 @@ public class CmsAppUserController extends BaseController
|
||||
* 获取APP用户详细信息
|
||||
*/
|
||||
@ApiOperation("获取APP用户详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('bussiness:user:query')")
|
||||
@PreAuthorize("@ss.hasPermi('cms:appUser:query')")
|
||||
@GetMapping(value = "/{userId}")
|
||||
public AjaxResult getInfo(@PathVariable("userId") Long userId)
|
||||
{
|
||||
|
||||
@@ -61,6 +61,8 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
|
||||
if (appUser == null) {
|
||||
return null;
|
||||
}
|
||||
//处理身份证脱敏
|
||||
appUser.setIdCard(StringUtil.desensitizeIdCard(appUser.getIdCard()));
|
||||
if(StringUtils.isNotEmpty(appUser.getJobTitleId())){
|
||||
List<String> list = Arrays.asList(appUser.getJobTitleId().split(","));
|
||||
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());
|
||||
List<AppSkill> skillList=appSkillMapper.getList(skill);
|
||||
appUser.setAppSkillsList(skillList);
|
||||
|
||||
File file=new File();
|
||||
file.setBussinessid(userId);
|
||||
List<File> files=fileMapper.selectFileList(file);
|
||||
appUser.setFileList(files);
|
||||
}
|
||||
return appUser;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<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="userId != null"> and user_id = #{userId}</if>
|
||||
<if test="isCompanyUser">and is_company_user =#{isCompanyUser}</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectByJobId" resultType="com.ruoyi.common.core.domain.entity.AppUser" parameterType="java.lang.Long">
|
||||
|
||||
Reference in New Issue
Block a user