generated from dxfeng/secondev-chapanda-feishu
筛选反馈不通过 归档到人才库
This commit is contained in:
parent
f05f66bfad
commit
94096cc062
|
|
@ -469,6 +469,18 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
|
|||
* @param gdyy 归档原因
|
||||
*/
|
||||
public void archiveTalentPool(String applicantId, boolean joinBlacklist, String gdyy) {
|
||||
archiveTalentPool(applicantId, joinBlacklist, gdyy, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* 归档人才库
|
||||
*
|
||||
* @param applicantId 应聘者ID
|
||||
* @param joinBlacklist 是否加入黑名单
|
||||
* @param gdyy 归档原因
|
||||
* @param gdxxyy 归档详细原因
|
||||
*/
|
||||
public void archiveTalentPool(String applicantId, boolean joinBlacklist, String gdyy, String gdxxyy) {
|
||||
RecordSet rs = new RecordSet();
|
||||
String name = "";
|
||||
String mobile = "";
|
||||
|
|
@ -546,6 +558,10 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
|
|||
dataMap.put("gdxxyy", "");
|
||||
}
|
||||
|
||||
if(StringUtils.isNotBlank(gdxxyy)){
|
||||
dataMap.put("gdxxyy", gdxxyy);
|
||||
}
|
||||
|
||||
RecruitRecordSet.insertData(dataMap, "uf_jcl_rck");
|
||||
refreshRight(uuid, formModeId, applicantId);
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ public class CreatRckApplicantExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,59 @@
|
|||
package weaver.formmode.recruit.modeexpand.departmentscreening;
|
||||
|
||||
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;
|
||||
import weaver.formmode.customjavacode.AbstractModeExpandJavaCodeNew;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.User;
|
||||
import weaver.soa.workflow.request.MainTableInfo;
|
||||
import weaver.soa.workflow.request.Property;
|
||||
import weaver.soa.workflow.request.RequestInfo;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2024/12/03
|
||||
* @version: 1.0
|
||||
*/
|
||||
public class ScreeningFeedbackExpand extends AbstractModeExpandJavaCodeNew {
|
||||
@Override
|
||||
public Map<String, String> doModeExpand(Map<String, Object> param) {
|
||||
Map<String, String> result = new HashMap<>();
|
||||
RecordSet rs = new RecordSet();
|
||||
try {
|
||||
RequestInfo requestInfo = (RequestInfo) param.get("RequestInfo");
|
||||
if (requestInfo != null) {
|
||||
User user = (User) param.get("user");
|
||||
Map<String, Object> mainDataMap = new HashMap<>();
|
||||
MainTableInfo mainTableInfo = requestInfo.getMainTableInfo();
|
||||
Property[] properties = mainTableInfo.getProperty();
|
||||
for (Property property : properties) {
|
||||
mainDataMap.put(property.getName(), property.getValue());
|
||||
}
|
||||
|
||||
String jg = Util.null2String(mainDataMap.get("jg"));
|
||||
if(StringUtils.isNotBlank(jg) && "1".equals(jg)) {
|
||||
// 用人部门简历筛选如果不通过,需要填写原因,保存后可直接加入人才库,同时推送消息给企管部招聘负责人;
|
||||
String pj = Util.null2String(mainDataMap.get("pj"));
|
||||
String ypz = Util.null2String(mainDataMap.get("ypz"));
|
||||
ServiceUtil.getService(ApplicantResumeServiceImpl.class, user).archiveTalentPool(ypz, false,"17",pj);
|
||||
|
||||
// 更新应聘简历为已淘汰
|
||||
rs.executeUpdate("update uf_jcl_yppc set zt = ? where id = ?", ApplicationStatusEnum.OBSOLETE.getValue(), ypz);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
} catch (Exception e) {
|
||||
rs.writeLog(e);
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ public class AddEntryModeExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ public class BatchAddInterviewResultModeExpand extends AbstractModeExpandJavaCod
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public class CreateInterviewModeExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ public class UpdateInterviewModeExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ public class CreateOfferModeExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public class DeleteBackToneExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public class DeleteInterviewExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public class DeleteSalaryExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public class DeleteScreenExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public class DeleteWrittenExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public class RecruitRecordModeExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ public class BatchAddWrittenResultModeExpand extends AbstractModeExpandJavaCodeN
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ public class CreateWrittenModeExpand extends AbstractModeExpandJavaCodeNew {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
new BaseBean().writeLog(e);
|
||||
result.put("errmsg", "自定义出错信息");
|
||||
result.put("errmsg", e.getMessage());
|
||||
result.put("flag", "false");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue