采购配置相关

20230922-ljl-fixBug
wangchaoxu 1 year ago
parent 46738ecf6d
commit 12c2187909

@ -218,9 +218,9 @@ public class SavePurchaseSettingService extends SPIBaseService implements Extens
log.error("自动扣款协议请求失败,原因:" + jsonObject.getString("reason")); log.error("自动扣款协议请求失败,原因:" + jsonObject.getString("reason"));
throw new RuntimeException(jsonObject.getString("reason")); throw new RuntimeException(jsonObject.getString("reason"));
} else { } else {
JSONObject paymentAgreements = jsonObject.getJSONObject("data").getJSONObject("paymentAgreements"); JSONArray paymentAgreements = jsonObject.getJSONObject("data").getJSONArray("paymentAgreements");
for (Object paymentAgreement : paymentAgreements.values()) { for (int i = 0; i < paymentAgreements.size(); i++) {
JSONObject obj = (JSONObject)paymentAgreement; JSONObject obj = paymentAgreements.getJSONObject(i);
String signedStatus = obj.getString("signedStatus"); String signedStatus = obj.getString("signedStatus");
if (signedStatus.equals("true")) { if (signedStatus.equals("true")) {
isSigned = true; isSigned = true;

Loading…
Cancel
Save