1.添加pc端查询求职者列表
2.添加pc录用接口
This commit is contained in:
@@ -6,6 +6,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import com.ruoyi.cms.domain.vo.AppUserLky;
|
||||
import com.ruoyi.cms.util.RoleUtils;
|
||||
import com.ruoyi.common.annotation.BussinessLog;
|
||||
import com.ruoyi.common.core.domain.entity.AppUserShow;
|
||||
import com.ruoyi.common.core.domain.model.RegisterBody;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
@@ -48,7 +49,7 @@ public class CmsAppUserController extends BaseController
|
||||
* 查询APP用户列表
|
||||
*/
|
||||
@ApiOperation("查询APP用户列表")
|
||||
// @PreAuthorize("@ss.hasPermi('cms:appUser:list')")
|
||||
@PreAuthorize("@ss.hasPermi('cms:appUser:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(AppUser appUser)
|
||||
{
|
||||
@@ -187,4 +188,14 @@ public class CmsAppUserController extends BaseController
|
||||
AppUserLky appUserLky = appUserService.selectAppUserInfo(appUser);
|
||||
return AjaxResult.success(appUserLky);
|
||||
}
|
||||
|
||||
@ApiOperation("查询APP申请用户列表")
|
||||
//@PreAuthorize("@ss.hasPermi('cms:appUser:userApplyList')")
|
||||
@GetMapping("/userApplyList")
|
||||
public TableDataInfo userApplyList(AppUser appUser)
|
||||
{
|
||||
startPage();
|
||||
List<AppUserShow> list = appUserService.selectUserApplyList(appUser);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.ruoyi.cms.domain.vo.CandidateVO;
|
||||
import com.ruoyi.cms.service.IAppUserService;
|
||||
import com.ruoyi.cms.service.IJobApplyService;
|
||||
import com.ruoyi.cms.util.RoleUtils;
|
||||
import com.ruoyi.cms.util.StringUtil;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
@@ -92,4 +93,22 @@ public class JobApplyController extends BaseController {
|
||||
}
|
||||
return success(iJobApplyService.applyComJob(jobApply));
|
||||
}
|
||||
|
||||
@Log(title = "岗位", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation("求职者管理-用户列表录用")
|
||||
@PutMapping("/applyAgree")
|
||||
public AjaxResult applyAgree(@RequestBody JobApply jobApply)
|
||||
{
|
||||
if(jobApply.getJobId()==null){
|
||||
return AjaxResult.error("岗位id为空");
|
||||
}
|
||||
if(jobApply.getUserId()==null){
|
||||
return AjaxResult.error("用户id为空!");
|
||||
}
|
||||
jobApply.setHire(StringUtil.HIRE_LY);
|
||||
jobApply.setHireSource(StringUtil.HIRE_SOURCE_SYSTEM);
|
||||
return success(iJobApplyService.applyComJob(jobApply));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -40,4 +40,7 @@ public class JobApply extends BaseEntity
|
||||
|
||||
@ApiModelProperty("是否录用 0录用 2或null未录用")
|
||||
private String hire;
|
||||
|
||||
@ApiModelProperty("录用来源 0本系统 1招聘会")
|
||||
private String hireSource;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ruoyi.common.core.domain.entity.AppUserShow;
|
||||
import com.ruoyi.common.core.domain.entity.MyChart;
|
||||
import com.ruoyi.common.core.domain.entity.AppUser;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
@@ -34,4 +35,6 @@ public interface AppUserMapper extends BaseMapper<AppUser>
|
||||
MyChart getMyTj(Long userId);
|
||||
|
||||
SysUser selectSysUserIdcard(String idCard);
|
||||
|
||||
List<AppUserShow> selectUserApplyList(AppUser appUser);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.ruoyi.cms.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.core.domain.entity.AppUserShow;
|
||||
import com.ruoyi.common.core.domain.entity.MyChart;
|
||||
import com.ruoyi.common.core.domain.entity.AppUser;
|
||||
import com.ruoyi.cms.domain.vo.AppUserLky;
|
||||
@@ -72,4 +73,6 @@ public interface IAppUserService
|
||||
public List<AppUser> selectNoTmAppUserList(AppUser appUser);
|
||||
|
||||
public MyChart getMyTj(Long userId);
|
||||
|
||||
public List<AppUserShow> selectUserApplyList(AppUser appUser);
|
||||
}
|
||||
|
||||
@@ -97,14 +97,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
|
||||
@Override
|
||||
public List<AppUser> selectAppUserList(AppUser appUser)
|
||||
{
|
||||
List<AppUser> list=appUserMapper.selectAppUserList(appUser);
|
||||
if(list!=null){
|
||||
//身份证脱敏处理
|
||||
list.forEach(x->{
|
||||
x.setIdCard(StringUtil.desensitizeIdCard(x.getIdCard()));
|
||||
});
|
||||
}
|
||||
return list;
|
||||
return appUserMapper.selectAppUserList(appUser);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -388,4 +381,16 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
|
||||
public MyChart getMyTj(Long userId) {
|
||||
return appUserMapper.getMyTj(userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AppUserShow> selectUserApplyList(AppUser appUser) {
|
||||
List<AppUserShow> list=appUserMapper.selectUserApplyList(appUser);
|
||||
if(list!=null){
|
||||
//身份证脱敏处理
|
||||
list.forEach(x->{
|
||||
x.setIdCard(StringUtil.desensitizeIdCard(x.getIdCard()));
|
||||
});
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import com.ruoyi.cms.mapper.JobApplyMapper;
|
||||
import com.ruoyi.cms.mapper.JobMapper;
|
||||
import com.ruoyi.cms.mapper.NoticeMapper;
|
||||
import com.ruoyi.cms.service.EmployeeConfirmService;
|
||||
import com.ruoyi.cms.util.StringUtil;
|
||||
import com.ruoyi.cms.util.notice.NoticeUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -40,7 +41,8 @@ public class EmployeeConfirmServiceImpl implements EmployeeConfirmService {
|
||||
if(t>0){
|
||||
JobApply apply=new JobApply();
|
||||
apply.setId(employeeConfirm.getApplyId());
|
||||
apply.setHire("0");
|
||||
apply.setHire(StringUtil.HIRE_LY);
|
||||
apply.setHireSource(StringUtil.HIRE_SOURCE_SYSTEM);//本系统录用
|
||||
jobApplyMapper.updateById(apply);
|
||||
}
|
||||
Job job=jobMapper.getJobInfo(employeeConfirm.getJobId());
|
||||
|
||||
@@ -35,6 +35,20 @@ public class StringUtil {
|
||||
*/
|
||||
public static final String BASE_WW_GW="http://http://222.80.110.161:11111/kashi/job-portal/detail/:";
|
||||
|
||||
/**
|
||||
*录用
|
||||
*/
|
||||
public static final String HIRE_LY="0";
|
||||
|
||||
/**
|
||||
*录用-系统
|
||||
*/
|
||||
public static final String HIRE_SOURCE_SYSTEM="0";
|
||||
/**
|
||||
*录用-招聘会
|
||||
*/
|
||||
public static final String HIRE_SOURCE_ZPH="1";
|
||||
|
||||
public static Boolean isEmptyOrNull(String s){
|
||||
if(Objects.isNull(s)){return true;}
|
||||
return s.isEmpty();
|
||||
|
||||
@@ -123,4 +123,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectUserApplyList" parameterType="AppUser" resultType="com.ruoyi.common.core.domain.entity.AppUserShow">
|
||||
select a.user_id , a.name , a.age , a.sex , get_birth_date_from_id_card ( a.id_card ) as birth_date ,
|
||||
a.education , a.political_affiliation , a.phone , a.avatar , c.min_salary salaryMin ,c.max_salary salaryMax,a.area ,a.id_card ,
|
||||
b.job_id ,c.job_title,e.name as company_name,b.hire,b.hire_source,b.create_time,e.company_id
|
||||
from app_user a
|
||||
inner join job_apply b on a.user_id = b.user_id and a.del_flag = '0' and b.del_flag = '0'
|
||||
INNER join job c on b.job_id=c.job_id and c.del_flag='0'
|
||||
INNER join company e on c.company_id=e.company_id and e.del_flag='0'
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and a.name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="birthDate != null "> and a.birth_date = #{birthDate}</if>
|
||||
<if test="education != null and education != ''"> and a.education = #{education}</if>
|
||||
<if test="politicalAffiliation != null and politicalAffiliation != ''"> and a.political_affiliation = #{politicalAffiliation}</if>
|
||||
<if test="phone != null and phone != ''"> and a.phone = #{phone}</if>
|
||||
<if test="idCard != null and idCard != ''"> and a.id_card like concat('%', CAST(#{idCard} AS VARCHAR), '%')</if>
|
||||
<if test="userId != null"> and a.user_id = #{userId}</if>
|
||||
</where>
|
||||
order by b.create_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user