Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,26 @@ public List<BeneficiariesDTO> getBeneficiaryListByIDs(HashSet benIdList, String
result = httpUtils.post(ConfigProperties.getPropertyByName("identity-api-url-getByBenRegIdList").replace(
IDENTITY_BASE_URL, (is1097 ? identity1097BaseURL : identityBaseURL)), benIdList.toString(), header);
OutputResponse identityResponse = inputMapper.gson().fromJson(result, OutputResponse.class);
if (identityResponse.getStatusCode() == OutputResponse.USERID_FAILURE) {
if (identityResponse != null && identityResponse.getStatusCode() == OutputResponse.USERID_FAILURE) {
throw new IEMRException(identityResponse.getErrorMessage());
}
JsonObject responseObj = (JsonObject) parser.parse(result);
// JsonArray data = (JsonArray) parser.parse(
JsonObject data1 = (JsonObject) responseObj.get("response");
String s = data1.get("data").getAsString();
JsonArray responseArray = parser.parse(s).getAsJsonArray();
if (null != result) {
JsonObject responseObj = (JsonObject) parser.parse(result);
// JsonArray data = (JsonArray) parser.parse(
JsonObject data1 = (JsonObject) responseObj.get("response");
String s = data1.get("data").getAsString();
JsonArray responseArray = parser.parse(s).getAsJsonArray();

// String data="s";
// JsonArray responseArray = (JsonArray) parser.parse(data);
// String data="s";
// JsonArray responseArray = (JsonArray) parser.parse(data);

for (JsonElement jsonElement : responseArray) {
for (JsonElement jsonElement : responseArray) {

BeneficiariesDTO callRequest = inputMapper.gson().fromJson(jsonElement.toString(), BeneficiariesDTO.class);
listBenDetailForOutboundDTO.add(callRequest);
BeneficiariesDTO callRequest = inputMapper.gson().fromJson(jsonElement.toString(),
BeneficiariesDTO.class);
listBenDetailForOutboundDTO.add(callRequest);

}
}
return listBenDetailForOutboundDTO;
}
Expand Down