Browse Source

修改离职字段同步

9060 1 tuần trước cách đây
mục cha
commit
71a9100a7c

+ 9 - 6
websrc/com/kingdee/eas/custom/recuritment/task/osf/BeisenFacadeOSFService.java

@@ -417,8 +417,11 @@ public class BeisenFacadeOSFService implements IHRMsfService {
             Map<String, Object> personProfile = Maps.newHashMap();
             standardResume.put("personProfile", personProfile);
             //现居住地址(可邮寄{"code":400,"data":"00000000-0000-0000-0000-000000000000","message":"值不在数据源的范围内,字段名:Gender,值:-1"}
-            String address = rowSet.getString("address");
-            personProfile.put("extxianjuzhudizhikeyouji_433899_1099396040", this.setValue(address));
+//            String address = rowSet.getString("address");
+//            if (StringUtils.isNotBlank(address)) {
+//
+//                personProfile.put("extxianjuzhudizhikeyouji_433899_1099396040", this.setValue(address));
+//            }
 
             //addressTX	通信地址	现居住地	OgLivingArea
             //personProfile.put("OgLivingArea", this.setValue(address));
@@ -433,9 +436,9 @@ public class BeisenFacadeOSFService implements IHRMsfService {
             String wedName = rowSet.getString("wedName");
             String wedNumber = rowSet.getString("wedNumber");
             String wedBeisenVal = rowSet.getString("wedBeisenVal");
-            if (StringUtils.isNotBlank(wedBeisenVal)) {
-                personProfile.put("exthunyinzhuangkuang_433899_1285520393", this.setValue(wedBeisenVal));
-            }
+//            if (StringUtils.isNotBlank(wedBeisenVal)) {
+//                personProfile.put("exthunyinzhuangkuang_433899_1285520393", this.setValue(wedBeisenVal));
+//            }
 
             //政治面貌
             String poliName = rowSet.getString("poliName");
@@ -612,7 +615,7 @@ public class BeisenFacadeOSFService implements IHRMsfService {
 
     protected Map<String, String> getBeisenTalentPool(Context ctx) throws BOSException, SQLException {
         Map<String, String> map = Maps.newHashMap();
-        IRowSet rowSet = DbUtil.executeQuery(ctx, "select top 1 cftalentPoolId,cftalentPoolType from CT_REC_BeisenTalentPool where cfstdIsDeleted='0' and cfisLieftTalentPool = 0 and FNumber='离职人才库' ");
+        IRowSet rowSet = DbUtil.executeQuery(ctx, "select top 1 cftalentPoolId,cftalentPoolType from CT_REC_BeisenTalentPool where cfstdIsDeleted='0' and cfisLieftTalentPool = 1 and FNumber='离职人才库' ");
         if (rowSet.next()) {
             String talentPoolId = rowSet.getString("cftalentPoolId");
             String talentPoolType = rowSet.getString("cftalentPoolType");