入职时,更新应聘简历为已归档

This commit is contained in:
dxfeng 2023-12-13 17:10:51 +08:00
parent ef856e2e01
commit 872231efee
1 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package weaver.formmode.recruit.modeexpand.entrymanager;
import com.engine.common.util.ServiceUtil;
import com.engine.recruit.enums.ApplicationStatusEnum;
import com.engine.recruit.service.impl.ApplicantResumeServiceImpl;
import org.apache.commons.lang3.StringUtils;
import weaver.conn.RecordSet;
@ -20,7 +21,7 @@ import java.util.Map;
public class AddEntryModeExpand extends AbstractModeExpandJavaCodeNew {
@Override
public Map<String, String> doModeExpand(Map<String, Object> param) {
Map<String, String> result = new HashMap<>();
Map<String, String> result = new HashMap<>(2);
try {
int billId;
int modeId;
@ -30,15 +31,17 @@ public class AddEntryModeExpand extends AbstractModeExpandJavaCodeNew {
billId = Util.getIntValue(requestInfo.getRequestid());
modeId = Util.getIntValue(requestInfo.getWorkflowid());
if (billId > 0 && modeId > 0) {
RecordSet rs = new RecordSet();
String pcId = Util.null2String(param.get("pcid"));
String offerId = Util.null2String(param.get("offerid"));
if (StringUtils.isNotBlank(pcId)) {
// 归档人才库归档原因待入职
ServiceUtil.getService(ApplicantResumeServiceImpl.class, user).archiveTalentPool(pcId, false, "13");
// 更新应聘批次为已归档
rs.executeUpdate("update uf_jcl_yppc set zt = ? where id = ? ", ApplicationStatusEnum.ARCHIVED.getValue(), pcId);
}
if (StringUtils.isNotBlank(offerId)) {
// 是否待入职字段为是
RecordSet rs = new RecordSet();
rs.executeUpdate("update uf_jcl_offer set sfzdrz = 1 where id = ? ", offerId);
}
}