更新: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")
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));
}

View File

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