Browse Source

代码调整

qingwu 2 weeks ago
parent
commit
6f5a012fb7

+ 5 - 1
src/com/kingdee/eas/custom/recuritment/task/RecuritmentFacadeControllerBean.java

@@ -61,6 +61,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
     @Override
     protected void _syncBeisenResume(Context ctx, String billId) throws BOSException, EASBizException {
         super._syncBeisenResume(ctx, billId);
+        logger.error("billId" + billId);
         //北森应聘者
         IApplicantBeisen iApplicantBeisen = ApplicantBeisenFactory.getLocalInstance(ctx);
         FilterInfo filterInfo = new FilterInfo();
@@ -126,6 +127,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
                 }
                 iApplicantBeisen.save(applicantBeisenInfo);
             } catch (Exception e) {
+                e.printStackTrace();
                 applicantBeisenInfo.setSyncStatus(ExecuteResultEnum.ERROR);
                 applicantBeisenInfo.setSyncResult("简历处理失败: " + e.getMessage());
                 iApplicantBeisen.save(applicantBeisenInfo);
@@ -168,7 +170,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
         entityPamas.put("metaObjectName", "Recruitment.Job");
         JSONObject entity = beisenApiClient.callApi(BeisenParam.GET_ENTITY, entityPamas);
         logger.error("entity--" + entity);
-        if (200 != applyJson.getInteger("code")) {
+        if (200 != entity.getInteger("code")) {
             throw new BOSException("根据ID获取获取数据单条失败,原因:" + entity.get("message"));
         }
         JSONObject entityData = entity.getJSONObject("data");
@@ -193,6 +195,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
         return recuritmentDemandCollection.get(0);
     }
 
+
     /**
      * 处理简历文件或面试评价文件
      *
@@ -1133,6 +1136,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
 
     /**
      * coyle
+     *
      * @param ctx
      * @param billId
      * @throws BOSException