更新:1.岗位录用,非录用修改。2.申请用户列表返回申请Id

This commit is contained in:
chenyanchang
2026-05-29 14:24:05 +08:00
parent 1f1a1cb138
commit 903a35b63b
3 changed files with 13 additions and 4 deletions

View File

@@ -100,11 +100,15 @@ public class JobApplyController extends BaseController {
@PutMapping("/applyAgree") @PutMapping("/applyAgree")
public AjaxResult applyAgree(@RequestBody JobApply jobApply) public AjaxResult applyAgree(@RequestBody JobApply jobApply)
{ {
if(jobApply.getId()==null){ if(jobApply.getId() == null || jobApply.getHire() == null){
return AjaxResult.error("参数id为空"); return AjaxResult.error("参数id为空");
} }
jobApply.setHire(StringUtil.HIRE_LY); String hire = jobApply.getHire();
jobApply.setHireSource(StringUtil.HIRE_SOURCE_SYSTEM); jobApply = iJobApplyService.selectJobApplyById(jobApply.getId());
if (jobApply != null) {
jobApply.setHire(hire);
jobApply.setHireSource(StringUtil.HIRE_SOURCE_SYSTEM);
}
return success(iJobApplyService.updateJobApply(jobApply)); return success(iJobApplyService.updateJobApply(jobApply));
} }

View File

@@ -60,6 +60,11 @@ public class StringUtil {
*/ */
public static final String HIRE_LY="0"; public static final String HIRE_LY="0";
/**
*不录用
*/
public static final String HIRE_LY_NOT="2";
/** /**
*录用-系统 *录用-系统
*/ */

View File

@@ -104,7 +104,7 @@
</select> </select>
<select id="selectApplyJobUserList" parameterType="com.ruoyi.common.core.domain.entity.AppUser" resultType="com.ruoyi.cms.domain.vo.CandidateVO"> <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 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 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' INNER join company l on b.company_id =l.company_id and l.del_flag='0'