更新: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";
|
||||
|
||||
/**
|
||||
*录用-系统
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user