Commit 36afbb07 authored by Fuzy's avatar Fuzy

修正

parent e8b1ece7
...@@ -92,7 +92,7 @@ public class ActSuppliesAccountServiceImpl implements IActSuppliesAccountService ...@@ -92,7 +92,7 @@ public class ActSuppliesAccountServiceImpl implements IActSuppliesAccountService
JSONObject object = new JSONObject(); JSONObject object = new JSONObject();
object.put("accsubjectchart", "1896891590924304390"); object.put("accsubjectchart", "1896891590924304390");
object.put("pk_org", "1685820920723669151"); object.put("pk_org", "1685820920723669151");
object.put("codes", actDispensing.getR()); object.put("codes", actDispensing.getAccountingCode());
ReturnResult returnResult = VoucherUtils.callVoucherQuery(object, "/yonbip/fi/fipub/accsubject/querysubjectapi"); ReturnResult returnResult = VoucherUtils.callVoucherQuery(object, "/yonbip/fi/fipub/accsubject/querysubjectapi");
JSONObject o = (JSONObject) returnResult.getData().get(0); JSONObject o = (JSONObject) returnResult.getData().get(0);
JSONObject data = o.getJSONObject("accsubjectchart"); JSONObject data = o.getJSONObject("accsubjectchart");
...@@ -101,7 +101,7 @@ public class ActSuppliesAccountServiceImpl implements IActSuppliesAccountService ...@@ -101,7 +101,7 @@ public class ActSuppliesAccountServiceImpl implements IActSuppliesAccountService
JSONArray jsonObject = (JSONArray) stringObjectEntry.getValue(); JSONArray jsonObject = (JSONArray) stringObjectEntry.getValue();
Optional<JSONObject> code = IntStream.range(0, jsonObject.size()) Optional<JSONObject> code = IntStream.range(0, jsonObject.size())
.mapToObj(jsonObject::getJSONObject) .mapToObj(jsonObject::getJSONObject)
.filter(v -> actDispensing.getR().equals(v.getString("code"))) .filter(v -> actDispensing.getAccountingCode().equals(v.getString("code")))
.findFirst(); .findFirst();
if (code.isPresent()) { if (code.isPresent()) {
JSONArray bodies = code.get().getJSONArray("bodies"); JSONArray bodies = code.get().getJSONArray("bodies");
......
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