更新:1.岗位录用,非录用修改。2.申请用户列表返回申请Id
This commit is contained in:
@@ -100,11 +100,15 @@ public class JobApplyController extends BaseController {
|
||||
@PutMapping("/applyAgree")
|
||||
public AjaxResult applyAgree(@RequestBody JobApply jobApply)
|
||||
{
|
||||
if(jobApply.getId()==null){
|
||||
if(jobApply.getId() == null || jobApply.getHire() == null){
|
||||
return AjaxResult.error("参数id为空");
|
||||
}
|
||||
jobApply.setHire(StringUtil.HIRE_LY);
|
||||
jobApply.setHireSource(StringUtil.HIRE_SOURCE_SYSTEM);
|
||||
String hire = jobApply.getHire();
|
||||
jobApply = iJobApplyService.selectJobApplyById(jobApply.getId());
|
||||
if (jobApply != null) {
|
||||
jobApply.setHire(hire);
|
||||
jobApply.setHireSource(StringUtil.HIRE_SOURCE_SYSTEM);
|
||||
}
|
||||
return success(iJobApplyService.updateJobApply(jobApply));
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,11 @@ public class StringUtil {
|
||||
*/
|
||||
public static final String HIRE_LY="0";
|
||||
|
||||
/**
|
||||
*不录用
|
||||
*/
|
||||
public static final String HIRE_LY_NOT="2";
|
||||
|
||||
/**
|
||||
*录用-系统
|
||||
*/
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectApplyJobUserList" parameterType="com.ruoyi.common.core.domain.entity.AppUser" resultType="com.ruoyi.cms.domain.vo.CandidateVO">
|
||||
select b.job_title jobName,l.name companyName,e.* from job_apply a
|
||||
select a.id applyId, b.job_title jobName,l.name companyName,e.* from job_apply a
|
||||
INNER join job b on a.job_id=b.job_id and b.del_flag='0'
|
||||
INNER join app_user e on a.user_id =e.user_id and e.del_flag='0'
|
||||
INNER join company l on b.company_id =l.company_id and l.del_flag='0'
|
||||
|
||||
Reference in New Issue
Block a user