Commit 1216f831 by 284718418@qq.com

1.修改bug 新增人才信息 初始化流程记录

parent 1122c5ac
......@@ -44,17 +44,23 @@ public class ZpglH5Controller {
@ApiOperation(value = "添加面试申请", httpMethod = "POST", notes = "添加面试申请")
@Log(title = "addInterviewApplication", businessType = BusinessType.INSERT_UPDATE)
public Result<Object> addInterviewApplication(@Validated @RequestBody InterviewApplicationDto dto) {
System.out.println(dto);
ZpglRcxx zpglRcxx = new ZpglRcxx();
//复制到 ZpglRcxx 实体对象
BeanUtils.copyProperties(dto,zpglRcxx);
/**
* 新增需要添加
* 是否初始化面试流程记录
*/
boolean insertZpglMslcLogFlag = StringUtils.isEmpty(zpglRcxx.getId());
// 计算工作年限
if(!StringUtils.isEmpty(zpglRcxx.getWorkBeginYear())){
zpglRcxx.setWorkyears(DateFormatUtils.yearCompare(zpglRcxx.getWorkBeginYear(),new Date()));
}
zpglRcxx.insertOrUpdate();
if(StringUtils.isEmpty(zpglRcxx.getId())){
if(insertZpglMslcLogFlag){
// 新增人才信息 初始化流程记录
ZpglMslcLog zpglMslcLog = new ZpglMslcLog();
zpglMslcLog.setZpglRcxxId(zpglRcxx.getId());
......
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