Commit 0462b7f4 authored by Fuzy's avatar Fuzy

修正

parent e9cdecd0
......@@ -92,7 +92,7 @@ public class ActSuppliesAccountServiceImpl implements IActSuppliesAccountService
JSONObject object = new JSONObject();
object.put("accsubjectchart", "1896891590924304390");
object.put("pk_org", "1685820920723669151");
object.put("codes", actDispensing.getAccountingCode());
object.put("codes", actDispensing.getR());
ReturnResult returnResult = VoucherUtils.callVoucherQuery(object, "/yonbip/fi/fipub/accsubject/querysubjectapi");
JSONObject o = (JSONObject) returnResult.getData().get(0);
JSONObject data = o.getJSONObject("accsubjectchart");
......@@ -101,7 +101,7 @@ public class ActSuppliesAccountServiceImpl implements IActSuppliesAccountService
JSONArray jsonObject = (JSONArray) stringObjectEntry.getValue();
Optional<JSONObject> code = IntStream.range(0, jsonObject.size())
.mapToObj(jsonObject::getJSONObject)
.filter(v -> actDispensing.getAccountingCode().equals(v.getString("code")))
.filter(v -> actDispensing.getR().equals(v.getString("code")))
.findFirst();
if (code.isPresent()) {
JSONArray bodies = code.get().getJSONArray("bodies");
......@@ -126,6 +126,7 @@ public class ActSuppliesAccountServiceImpl implements IActSuppliesAccountService
}
}
}
actDispensing.setAccountingCode(actDispensing.getR());
}
return actDispensings;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment