2023-09-18 15:01:35 +08:00
|
|
|
package com.engine.recruit.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.engine.core.impl.Service;
|
2023-11-03 14:22:47 +08:00
|
|
|
import com.engine.recruit.entity.record.ApplicantRecordPo;
|
2023-10-12 16:57:35 +08:00
|
|
|
import com.engine.recruit.enums.ApplicationStatusEnum;
|
2023-11-02 14:26:03 +08:00
|
|
|
import com.engine.recruit.enums.RecordOperateEnum;
|
2023-09-18 15:01:35 +08:00
|
|
|
import com.engine.recruit.service.RecruitButtonService;
|
2023-11-02 14:26:03 +08:00
|
|
|
import weaver.common.DateUtil;
|
2023-10-12 16:57:35 +08:00
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
|
import weaver.general.Util;
|
2023-09-18 15:01:35 +08:00
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <p>聚才林招聘</p>
|
|
|
|
|
* "淘汰"按钮实现类
|
|
|
|
|
*
|
|
|
|
|
* @author:dxfeng
|
|
|
|
|
* @createTime: 2023/09/18
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
public class EliminateServiceImpl extends Service implements RecruitButtonService {
|
2023-11-02 14:26:03 +08:00
|
|
|
|
2023-09-18 15:01:35 +08:00
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> execute(Map<String, Object> params) {
|
2023-10-12 16:57:35 +08:00
|
|
|
String billId = Util.null2String(params.get("billId"));
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
rs.executeUpdate("update uf_jcl_yppc set zt = ? where id = ? ", ApplicationStatusEnum.OBSOLETE.getValue(), billId);
|
2023-11-02 14:26:03 +08:00
|
|
|
|
2023-11-03 14:22:47 +08:00
|
|
|
// 插入应聘过程
|
|
|
|
|
ApplicantRecordPo recordPo = ApplicantRecordPo.builder()
|
|
|
|
|
.billId(billId)
|
|
|
|
|
.operateTime(DateUtil.getDateTime())
|
|
|
|
|
.user(user)
|
|
|
|
|
.recordOperateType(RecordOperateEnum.ELIMINATE)
|
|
|
|
|
.build();
|
|
|
|
|
recordPo.execute();
|
2023-11-02 14:26:03 +08:00
|
|
|
|
2023-09-18 15:01:35 +08:00
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|