|
@@ -166,7 +166,7 @@ public class BeisenTransferPhaseFacadeControllerBean extends AbstractBeisenTrans
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//维护录用报批与北森申请id映射关系
|
|
//维护录用报批与北森申请id映射关系
|
|
- Map applyIdRecApprovalMap = new HashMap();
|
|
|
|
|
|
+ Map<String, String> applyIdRecApprovalMap = new HashMap();
|
|
Map<String, JSONArray> recApprovalMap = new HashMap();
|
|
Map<String, JSONArray> recApprovalMap = new HashMap();
|
|
IOffer iOffer = OfferFactory.getLocalInstance(ctx);
|
|
IOffer iOffer = OfferFactory.getLocalInstance(ctx);
|
|
for (int i = 0; i < recApprovalCollection.size(); i++) {
|
|
for (int i = 0; i < recApprovalCollection.size(); i++) {
|
|
@@ -281,7 +281,7 @@ public class BeisenTransferPhaseFacadeControllerBean extends AbstractBeisenTrans
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//维护OfferId与北森申请id映射关系
|
|
//维护OfferId与北森申请id映射关系
|
|
- Map applyIdOfferMap = new HashMap();
|
|
|
|
|
|
+ Map<String, String> applyIdOfferMap = new HashMap();
|
|
Map<String, JSONArray> offerMap = new HashMap();
|
|
Map<String, JSONArray> offerMap = new HashMap();
|
|
Map<String, JSONArray> recApprovalMap = new HashMap();
|
|
Map<String, JSONArray> recApprovalMap = new HashMap();
|
|
for (int i = 0; i < offerCollection.size(); i++) {
|
|
for (int i = 0; i < offerCollection.size(); i++) {
|
|
@@ -346,7 +346,7 @@ public class BeisenTransferPhaseFacadeControllerBean extends AbstractBeisenTrans
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- handleBeisenTransferPhaseQuery(ctx, applyIdOfferMap, offerMap, "T_REC_Offer");
|
|
|
|
|
|
+ handleBeisenTransferPhaseQuery(ctx, offerMap, applyIdOfferMap, "T_REC_Offer");
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
logger.error("offer同步北森状态转移报错: " + e.getMessage(), e);
|
|
logger.error("offer同步北森状态转移报错: " + e.getMessage(), e);
|
|
@@ -365,7 +365,7 @@ public class BeisenTransferPhaseFacadeControllerBean extends AbstractBeisenTrans
|
|
private void handleBeisenTransferPhaseQuery(
|
|
private void handleBeisenTransferPhaseQuery(
|
|
Context ctx,
|
|
Context ctx,
|
|
Map<String, JSONArray> recApprovalMap,
|
|
Map<String, JSONArray> recApprovalMap,
|
|
- Map applyIdStatusMap,
|
|
|
|
|
|
+ Map<String, String> applyIdStatusMap,
|
|
String tableName
|
|
String tableName
|
|
) throws BOSException, IOException {
|
|
) throws BOSException, IOException {
|
|
BeisenApiClient beisenApiClient = BeisenApiClient.getInstance();
|
|
BeisenApiClient beisenApiClient = BeisenApiClient.getInstance();
|
|
@@ -378,7 +378,10 @@ public class BeisenTransferPhaseFacadeControllerBean extends AbstractBeisenTrans
|
|
params.put("applyIds", applyIds);
|
|
params.put("applyIds", applyIds);
|
|
params.put("phaseId", phaseStatusInfo.getPhaseId());
|
|
params.put("phaseId", phaseStatusInfo.getPhaseId());
|
|
params.put("statusId", phaseStatusInfo.getStatusId());
|
|
params.put("statusId", phaseStatusInfo.getStatusId());
|
|
|
|
+ logger.error("同步北森状态url: " + BeisenParam.POST_TRANSFERPHASE_URL);
|
|
|
|
+ logger.error("同步北森状态参数: " + params.toJSONString());
|
|
JSONObject response = beisenApiClient.callApi(BeisenParam.POST_TRANSFERPHASE_URL, params);
|
|
JSONObject response = beisenApiClient.callApi(BeisenParam.POST_TRANSFERPHASE_URL, params);
|
|
|
|
+ logger.error("同步北森状态响应: " + response.toJSONString());
|
|
int code = response.getIntValue("code");
|
|
int code = response.getIntValue("code");
|
|
String message = response.getString("message");
|
|
String message = response.getString("message");
|
|
if (200 == code) {
|
|
if (200 == code) {
|