Commit c609f1ee by 284718418@qq.com

招聘管理-标准简历代码

parent 2c4b86d9
...@@ -435,7 +435,8 @@ public class ZpglController { ...@@ -435,7 +435,8 @@ public class ZpglController {
*/ */
@ResponseBody @ResponseBody
@PostMapping("/resume_import_candidate") @PostMapping("/resume_import_candidate")
@ApiOperation(value = "招聘-导入候选人简历", httpMethod = "POST", notes = "招聘-导入候选人简历") @ApiOperation(value = "7.招聘-导入候选人简历", httpMethod = "POST", notes = "招聘-导入候选人简历")
@ApiOperationSupport(order = 7)
public Result<Object> resumeImportCandidate(@CurrentUser UserBean userBean, @RequestParam(required = true) MultipartFile file, public Result<Object> resumeImportCandidate(@CurrentUser UserBean userBean, @RequestParam(required = true) MultipartFile file,
@ApiParam("招聘渠道ID") @RequestParam(required = false) Integer zpglZpqdId, @ApiParam("招聘渠道ID") @RequestParam(required = false) Integer zpglZpqdId,
@ApiParam("职位信息Id") @RequestParam(required = true) Integer zpglZwxxId, @ApiParam("职位信息Id") @RequestParam(required = true) Integer zpglZwxxId,
...@@ -464,6 +465,23 @@ public class ZpglController { ...@@ -464,6 +465,23 @@ public class ZpglController {
} }
} }
/**
* 招聘-更改招聘职位
*
* @param
* @return
*/
@PostMapping(value = "/edit/zwxx")
@ApiOperation(value = "8.招聘-更改招聘职位", httpMethod = "POST", notes = "招聘-更改招聘职位")
@ApiOperationSupport(order = 8)
public Result<Object> deitZwxx(@CurrentUser UserBean userBean, @RequestBody ZpglRcxxDto zpglRcxxDto) {
try {
return zpglService.updateZpglRcxxZwxx(userBean,zpglRcxxDto)?ResultUtil.success("更改招聘职位成功"):ResultUtil.error("更改招聘职位失败");
} catch (Exception e) {
e.printStackTrace();
throw new CustomException("招聘-更改招聘职位失败");
}
}
/** /**
* 获取统计数据 * 获取统计数据
......
...@@ -37,4 +37,13 @@ public interface ZpglService { ...@@ -37,4 +37,13 @@ public interface ZpglService {
Result<Object> addResumeImportCandidate(UserBean userBean, MultipartFile file, ImportCandidateDto importCandidateDto); Result<Object> addResumeImportCandidate(UserBean userBean, MultipartFile file, ImportCandidateDto importCandidateDto);
/**
* 招聘-更改招聘职位
* 添加面试流程记录
* @param userBean zpglRcxxDto
* @return
*/
boolean updateZpglRcxxZwxx(UserBean userBean, ZpglRcxxDto zpglRcxxDto);
} }
...@@ -130,18 +130,46 @@ public class ZpglServiceImpl implements ZpglService { ...@@ -130,18 +130,46 @@ public class ZpglServiceImpl implements ZpglService {
zpglRcxx.setZpglFailId(zpglRcxxDto.getZpglFailId()); zpglRcxx.setZpglFailId(zpglRcxxDto.getZpglFailId());
zpglRcxx.setRemarks(zpglRcxxDto.getRemarks()); zpglRcxx.setRemarks(zpglRcxxDto.getRemarks());
ZpglFail zpglFail = ZpglFail.builder().id(zpglRcxxDto.getZpglFailId()).build().selectById(); ZpglFail zpglFail = ZpglFail.builder().id(zpglRcxxDto.getZpglFailId()).build().selectById();
String messageTemplate = ZpglMessageTemplate.ENTRYING; String messageTemplate = ZpglMessageTemplate.ENTRYING,titleLabel="";
if (!StringUtils.isEmpty(zpglFail)) { if (!StringUtils.isEmpty(zpglFail)) {
if (zpglFail.getZpglRcxxStatus().equals(JxglEnumInterface.ResumeStatus.INTERVIEW_PASS.getType())) { if (zpglFail.getZpglRcxxStatus().equals(JxglEnumInterface.ResumeStatus.INTERVIEWED.getType())) {
titleLabel = JxglEnumInterface.ResumeStatus.INTERVIEWED.getName();
zpglRcxxStatus = JxglEnumInterface.MslcLogStatus.OTHER.getType(); zpglRcxxStatus = JxglEnumInterface.MslcLogStatus.OTHER.getType();
messageTemplate = ZpglMessageTemplate.INTERVIEWED_ENTRYING; messageTemplate = ZpglMessageTemplate.INTERVIEWED_ENTRYING;
} }
if(zpglFail.getZpglRcxxStatus().equals(JxglEnumInterface.ResumeStatus.INTERVIEW_PASS.getType())){
titleLabel = JxglEnumInterface.ResumeStatus.INTERVIEW_PASS.getName();
zpglRcxxStatus = JxglEnumInterface.MslcLogStatus.OTHER.getType();
messageTemplate = ZpglMessageTemplate.INTERVIEWED_ENTRYING;
}
if(zpglFail.getZpglRcxxStatus().equals(JxglEnumInterface.ResumeStatus.INTERVIEW.getType())){
titleLabel = JxglEnumInterface.ResumeStatus.INTERVIEW.getName();
zpglRcxxStatus = JxglEnumInterface.MslcLogStatus.OTHER.getType();
messageTemplate = ZpglMessageTemplate.INTERVIEWED_ENTRYING;
}
if (zpglFail.getZpglRcxxStatus().equals(JxglEnumInterface.ResumeStatus.EMPLOY.getType())) {
titleLabel = JxglEnumInterface.ResumeStatus.EMPLOY.getName();
zpglRcxxStatus = JxglEnumInterface.MslcLogStatus.OTHER.getType();
messageTemplate = ZpglMessageTemplate.OFFER_ENTRYING;
}
if (zpglFail.getZpglRcxxStatus().equals(JxglEnumInterface.ResumeStatus.OFFER.getType())) { if (zpglFail.getZpglRcxxStatus().equals(JxglEnumInterface.ResumeStatus.OFFER.getType())) {
titleLabel = JxglEnumInterface.ResumeStatus.OFFER.getName();
zpglRcxxStatus = JxglEnumInterface.MslcLogStatus.OTHER.getType();
messageTemplate = ZpglMessageTemplate.OFFER_ENTRYING;
}
if (zpglFail.getZpglRcxxStatus().equals(JxglEnumInterface.ResumeStatus.ENTRYING.getType())) {
titleLabel = JxglEnumInterface.ResumeStatus.ENTRYING.getName();
zpglRcxxStatus = JxglEnumInterface.MslcLogStatus.OTHER.getType();
messageTemplate = ZpglMessageTemplate.OFFER_ENTRYING;
}
if (zpglFail.getZpglRcxxStatus().equals(JxglEnumInterface.ResumeStatus.ENTRY.getType())) {
titleLabel = JxglEnumInterface.ResumeStatus.ENTRY.getName();
zpglRcxxStatus = JxglEnumInterface.MslcLogStatus.OTHER.getType(); zpglRcxxStatus = JxglEnumInterface.MslcLogStatus.OTHER.getType();
messageTemplate = ZpglMessageTemplate.OFFER_ENTRYING; messageTemplate = ZpglMessageTemplate.OFFER_ENTRYING;
} }
detail = ZpglMessageTemplate.print(messageTemplate, new String[]{ detail = ZpglMessageTemplate.print(messageTemplate, new String[]{
userBean.getQyzxEmpLogin().getUsername(), zpglFail.getFailCause(), zpglRcxxDto.getRemarks()}); userBean.getQyzxEmpLogin().getUsername(), zpglFail.getFailCause(), zpglRcxxDto.getRemarks(), titleLabel});
} }
break; break;
case 10: case 10:
...@@ -196,6 +224,19 @@ public class ZpglServiceImpl implements ZpglService { ...@@ -196,6 +224,19 @@ public class ZpglServiceImpl implements ZpglService {
return this.addZpglRcxx(userBean, resumeExtract, importCandidateDto); return this.addZpglRcxx(userBean, resumeExtract, importCandidateDto);
} }
@Override
public boolean updateZpglRcxxZwxx(UserBean userBean, ZpglRcxxDto zpglRcxxDto) {
ZpglRcxx zpglRcxx = ZpglRcxx.builder().id(zpglRcxxDto.getId()).zpglZwxxId(zpglRcxxDto.getZpglZwxxId()).build();
ZpglMslcLog zpglMslcLog = new ZpglMslcLog();
zpglMslcLog.setZpglRcxxId(zpglRcxxDto.getId());
zpglMslcLog.setUserId(userBean.getEmpNum());
zpglMslcLog.setUserName(userBean.getQyzxEmpLogin().getUsername());
zpglMslcLog.setZpglRcxxStatus(JxglEnumInterface.MslcLogStatus.OTHER.getType());
zpglMslcLog.setDetail(userBean.getQyzxEmpLogin().getUsername()+" 更改候选人应聘职位.");
zpglRcxx.updateById();
return zpglMslcLogService.addZpglMslcLog(zpglMslcLog);
}
/** /**
* 导入简历 * 导入简历
* 同步人才信息 教育资讯 基本信息 其他信息 项目信息 工作信息 * 同步人才信息 教育资讯 基本信息 其他信息 项目信息 工作信息
......
...@@ -45,6 +45,11 @@ public class ZpglRcxxDto implements Serializable{ ...@@ -45,6 +45,11 @@ public class ZpglRcxxDto implements Serializable{
@ApiModelProperty(value = "淘汰原因ID") @ApiModelProperty(value = "淘汰原因ID")
private Integer zpglFailId; private Integer zpglFailId;
/** /**
* 职位id
*/
@ApiModelProperty(value = "职位id")
private Integer zpglZwxxId;
/**
* 备注 * 备注
*/ */
@ApiModelProperty(value = "备注") @ApiModelProperty(value = "备注")
......
...@@ -8,7 +8,7 @@ package cn.timer.api.utils; ...@@ -8,7 +8,7 @@ package cn.timer.api.utils;
*/ */
public class ZpglMessageTemplate { public class ZpglMessageTemplate {
public static final String FILTERING = "{0} 将候选人状态从[已淘汰]更改为[待初筛]."; public static final String FILTERING = "{0} 将候选人状态更改为[待初筛].";
public static final String FILTER_PASS ="{0} 将候选人状态从[待初筛]更改为[初筛通过]."; public static final String FILTER_PASS ="{0} 将候选人状态从[待初筛]更改为[初筛通过].";
//,面试地址:{4} //,面试地址:{4}
public static final String INTERVIEW ="{0} 为候选人安排了现场面试.面试轮次:第{1}轮,面试时间{2},面试官:{3}"; public static final String INTERVIEW ="{0} 为候选人安排了现场面试.面试轮次:第{1}轮,面试时间{2},面试官:{3}";
...@@ -19,8 +19,8 @@ public class ZpglMessageTemplate { ...@@ -19,8 +19,8 @@ public class ZpglMessageTemplate {
public static final String ENTRYING ="{0} 将候选人状态从[待初筛]更改为[初筛淘汰], 淘汰原因:{1},备注:{2}"; public static final String ENTRYING ="{0} 将候选人状态从[待初筛]更改为[初筛淘汰], 淘汰原因:{1},备注:{2}";
public static final String WAIT ="{0} 将候选人添加到待入职."; public static final String WAIT ="{0} 将候选人添加到待入职.";
public static final String ENTRY ="{0} 为候选人办理了入职."; public static final String ENTRY ="{0} 为候选人办理了入职.";
public static final String INTERVIEWED_ENTRYING ="{0} 将候选人状态从[已面试]更改为[面试淘汰], 淘汰原因:{1},备注:{2}"; public static final String INTERVIEWED_ENTRYING ="{0} 将候选人状态从[{3}]更改为[面试淘汰], 淘汰原因:{1},备注:{2}";
public static final String OFFER_ENTRYING ="{0} 将候选人状态从[已发Offer]更改为[录用淘汰], 淘汰原因:{1},备注:{2}"; public static final String OFFER_ENTRYING ="{0} 将候选人状态从[{3}}]更改为[录用淘汰], 淘汰原因:{1},备注:{2}";
public static String print(String template, String[] values) { public static String print(String template, String[] values) {
if (null == values || values.length == 0) { if (null == values || values.length == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment