#3316180 接受offer或者拒绝offer要修改简历库的‘当前应聘阶段字’段值

This commit is contained in:
dxfeng 2024-11-12 10:28:06 +08:00
parent ff7a3ba510
commit fb8fb79b19
1 changed files with 12 additions and 2 deletions

View File

@ -64,16 +64,26 @@ public class OfferServiceImpl extends Service implements OfferService {
rs.executeQuery("select zt from uf_jcl_offer where id = ? and dzyx = ? ", billId, email);
if (rs.next()) {
String zt = rs.getString("zt");
String xm = rs.getString("xm");
if ("2".equals(zt) || "3".equals(zt)) {
throw new CustomizeRunTimeException("此反馈已提交,请勿重复提交");
}
rs.writeLog("xm==>", xm);
rs.writeLog("status==>", status);
// 更新应聘简历表状态
if ("3".equals(status)) {
// 接受offer
rs.executeUpdate("update uf_jcl_yppc set dqypjd1 = 14 where id = ?", xm);
} else {
// 拒绝offer
rs.executeUpdate("update uf_jcl_yppc set dqypjd1 = 12 where id = ?", xm);
}
}
// 更新反馈状态反馈时间
rs.executeUpdate("update uf_jcl_offer set zt = ?, fksj = ? where id = ? and dzyx = ?", status, DateUtil.getDateTime(), billId, email);
// TODO 更新应聘简历表状态
// 记录应聘过程
ApplicantRecordPo recordPo = ApplicantRecordPo.builder()