|
@@ -1131,15 +1131,29 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * coyle
|
|
|
+ * @param ctx
|
|
|
+ * @param billId
|
|
|
+ * @throws BOSException
|
|
|
+ * @throws EASBizException
|
|
|
+ */
|
|
|
@Override
|
|
|
protected void _syncRecuritmentToBeisen(Context ctx, String billId) throws BOSException, EASBizException {
|
|
|
super._syncRecuritmentToBeisen(ctx, billId);
|
|
|
-
|
|
|
IRecuritmentDemand dIns = RecuritmentDemandFactory.getLocalInstance(ctx);
|
|
|
RecuritmentDemandInfo recuritmentDemandInfo = dIns.getRecuritmentDemandInfo(new ObjectUuidPK(billId));
|
|
|
- RecruitmentDemandService recruitmentDemandService = new RecruitmentDemandService(false);
|
|
|
//更新或新增
|
|
|
try {
|
|
|
+ //测试环境或者线上环境
|
|
|
+ boolean isProductionEnv = false;
|
|
|
+ BeisenParamByProperties beisenParamByProperties = new BeisenParamByProperties();
|
|
|
+ Map<String, String> config = beisenParamByProperties.getConfig();
|
|
|
+ String isProductionEnvStr = config.get("isProductionEnv");// 线上环境
|
|
|
+ if (!StringUtils.isEmpty(isProductionEnvStr) && isProductionEnvStr.equals("true")) {
|
|
|
+ isProductionEnv = true;
|
|
|
+ }
|
|
|
+ RecruitmentDemandService recruitmentDemandService = new RecruitmentDemandService(isProductionEnv);
|
|
|
Object requirementId = recuritmentDemandInfo.get("requirementId");
|
|
|
if (ObjectUtils.allNotNull(requirementId)) {
|
|
|
recruitmentDemandService.updateRequirement(ctx, String.valueOf(requirementId), recuritmentDemandInfo);
|