|
@@ -158,7 +158,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
// 获取并处理原始简历文件
|
|
// 获取并处理原始简历文件
|
|
|
processResumeFile(applyId, ctx, resumeInfo, "原始简历");
|
|
processResumeFile(applyId, ctx, resumeInfo, "原始简历");
|
|
|
// 获取并处理背调信息文件
|
|
// 获取并处理背调信息文件
|
|
|
- processResumeFile(applyId, ctx, resumeInfo, "背调信息");
|
|
|
|
|
|
|
+ processResumeFile(applyId, ctx, resumeInfo, "背景调查审批表");
|
|
|
//生成录用报批
|
|
//生成录用报批
|
|
|
//String errorMsg = saveRecApproval(ctx, mapData);
|
|
//String errorMsg = saveRecApproval(ctx, mapData);
|
|
|
String serviceName = "generateHireApprovalService";
|
|
String serviceName = "generateHireApprovalService";
|
|
@@ -171,9 +171,12 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
updateApproval(ctx, mapData);
|
|
updateApproval(ctx, mapData);
|
|
|
//修复简历数据
|
|
//修复简历数据
|
|
|
updateResumeBaseRe(ctx, iResumeBaseRec, mapData.get("resumeBaseRecId").toString());
|
|
updateResumeBaseRe(ctx, iResumeBaseRec, mapData.get("resumeBaseRecId").toString());
|
|
|
|
|
+ //中间表成功信息
|
|
|
applicantBeisenInfo.setSyncResult("同步成功!");
|
|
applicantBeisenInfo.setSyncResult("同步成功!");
|
|
|
applicantBeisenInfo.setSyncStatus(ExecuteResultEnum.SUCCESS);
|
|
applicantBeisenInfo.setSyncStatus(ExecuteResultEnum.SUCCESS);
|
|
|
successSize++;
|
|
successSize++;
|
|
|
|
|
+ //返回给北森信息
|
|
|
|
|
+ pushMessageToBeisen(applyId, "同步成功");
|
|
|
} else {
|
|
} else {
|
|
|
throw new BOSException(errorMsg.toString());
|
|
throw new BOSException(errorMsg.toString());
|
|
|
}
|
|
}
|
|
@@ -183,6 +186,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
iApplicantBeisen.save(applicantBeisenInfo);
|
|
iApplicantBeisen.save(applicantBeisenInfo);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
|
|
+ pushMessageToBeisen(applyId, e.getMessage());
|
|
|
applicantBeisenInfo.setSyncStatus(ExecuteResultEnum.ERROR);
|
|
applicantBeisenInfo.setSyncStatus(ExecuteResultEnum.ERROR);
|
|
|
applicantBeisenInfo.setSyncResult("简历处理失败: " + e.getMessage());
|
|
applicantBeisenInfo.setSyncResult("简历处理失败: " + e.getMessage());
|
|
|
iApplicantBeisen.save(applicantBeisenInfo);
|
|
iApplicantBeisen.save(applicantBeisenInfo);
|
|
@@ -352,12 +356,12 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
if (recuritmentDemandCollection.isEmpty()) {
|
|
if (recuritmentDemandCollection.isEmpty()) {
|
|
|
//String message = "sHR未查询到对应的招聘需求,北森需求ID:" + recruitRequirementId + ",需求名称:" + dataJson.getString("name");;
|
|
//String message = "sHR未查询到对应的招聘需求,北森需求ID:" + recruitRequirementId + ",需求名称:" + dataJson.getString("name");;
|
|
|
// 推送未查询到招聘需求消息至北森
|
|
// 推送未查询到招聘需求消息至北森
|
|
|
- pushMessageToBeisen(applyId, configMap.get("syncToBsErrorMsg"));
|
|
|
|
|
|
|
+ //pushMessageToBeisen(applyId, configMap.get("syncToBsErrorMsg"));
|
|
|
//pushMessageToBeisen(applyId, "显示匹配不上金蝶原始需求单据");
|
|
//pushMessageToBeisen(applyId, "显示匹配不上金蝶原始需求单据");
|
|
|
- throw new BOSException("sHR未查询到对应的招聘需求,需求名称::" + dataJson.getString("name") + ",北森需求ID" + recruitRequirementId);
|
|
|
|
|
|
|
+ throw new BOSException("sHR未查询到对应的招聘需求,北森需求名称:" + dataJson.getString("name") + ",北森需求ID:" + recruitRequirementId);
|
|
|
}
|
|
}
|
|
|
//成功則修改北森字段为空
|
|
//成功則修改北森字段为空
|
|
|
- pushMessageToBeisen(applyId, "");
|
|
|
|
|
|
|
+ //pushMessageToBeisen(applyId, "成功");
|
|
|
return recuritmentDemandCollection.get(0);
|
|
return recuritmentDemandCollection.get(0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -368,7 +372,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
* @param applyId 申请ID
|
|
* @param applyId 申请ID
|
|
|
* @param message 消息
|
|
* @param message 消息
|
|
|
*/
|
|
*/
|
|
|
- public void pushMessageToBeisen(String applyId, String message) throws IOException {
|
|
|
|
|
|
|
+ public void pushMessageToBeisen(String applyId, String message) throws BOSException {
|
|
|
try {
|
|
try {
|
|
|
|
|
|
|
|
BeisenApiClient beisenApiClient = BeisenApiClient.getInstance();
|
|
BeisenApiClient beisenApiClient = BeisenApiClient.getInstance();
|
|
@@ -389,7 +393,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
logger.error("pushMessageToBeisen--result--" + result);
|
|
logger.error("pushMessageToBeisen--result--" + result);
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
- throw new RuntimeException(e);
|
|
|
|
|
|
|
+ throw new BOSException(e);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -420,13 +424,13 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
fileInfo = beisenApiClient.callGetApi(BeisenParam.GET_INTERVIEWEVALUATIONFILE + param, new JSONObject());
|
|
fileInfo = beisenApiClient.callGetApi(BeisenParam.GET_INTERVIEWEVALUATIONFILE + param, new JSONObject());
|
|
|
} else if ("原始简历".equals(fileType)) {
|
|
} else if ("原始简历".equals(fileType)) {
|
|
|
fileInfo = beisenApiClient.callGetApi(BeisenParam.GET_ORIGINRESUMEBYAPPLYID + param, new JSONObject());
|
|
fileInfo = beisenApiClient.callGetApi(BeisenParam.GET_ORIGINRESUMEBYAPPLYID + param, new JSONObject());
|
|
|
- } else if ("背调信息".equals(fileType)) {
|
|
|
|
|
|
|
+ } else if ("背景调查审批表".equals(fileType)) {
|
|
|
param = "?applyId=" + applyId + "&supportManualCreate=true";
|
|
param = "?applyId=" + applyId + "&supportManualCreate=true";
|
|
|
String GET_BACKGROUNDINVESTIGATIONBYAPPLYID = "https://openapi.italent.cn/RecruitV6/api/v1/Investigation/GetBackgroundInvestigationByApplyId";
|
|
String GET_BACKGROUNDINVESTIGATIONBYAPPLYID = "https://openapi.italent.cn/RecruitV6/api/v1/Investigation/GetBackgroundInvestigationByApplyId";
|
|
|
//背景调查附件单独处理
|
|
//背景调查附件单独处理
|
|
|
//fileInfo = beisenApiClient.callGetApi(BeisenParam.GET_BACKGROUNDINVESTIGATIONBYAPPLYID + param, new JSONObject());
|
|
//fileInfo = beisenApiClient.callGetApi(BeisenParam.GET_BACKGROUNDINVESTIGATIONBYAPPLYID + param, new JSONObject());
|
|
|
fileInfo = beisenApiClient.callGetApi(GET_BACKGROUNDINVESTIGATIONBYAPPLYID + param, new JSONObject());
|
|
fileInfo = beisenApiClient.callGetApi(GET_BACKGROUNDINVESTIGATIONBYAPPLYID + param, new JSONObject());
|
|
|
- logger.error("背调信息--" + fileInfo);
|
|
|
|
|
|
|
+ logger.error("背景调查审批表--" + fileInfo);
|
|
|
//originResume
|
|
//originResume
|
|
|
isOrigin = true;
|
|
isOrigin = true;
|
|
|
}
|
|
}
|