From 587b2a64372e68108de5b97fb8aae55281e13c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=E6=98=8E=E6=85=A7?= <1191093413@qq.com> Date: Fri, 24 Nov 2023 13:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E=E6=9F=A5?= =?UTF-8?q?=E9=AA=8C=E4=BF=A1=E6=81=AF=E4=B8=AD=E5=8C=85=E5=90=AB=E8=AF=A6?= =?UTF-8?q?=E8=A7=81=E9=94=80=E8=B4=A7=E6=B8=85=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SDNYMainProcessController.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java b/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java index f5bf6160..e3a35035 100644 --- a/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java +++ b/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java @@ -441,6 +441,14 @@ public class SDNYMainProcessController extends AbstractController { map.put("taxRate", "0.00"); } } + JSONArray invoiceLineList = checkInvoiceResult.getJSONArray("invoiceLineList"); + for (int i = 0; i < invoiceLineList.size(); i++) { + JSONObject detail = invoiceLineList.getJSONObject(i); + String commodityName = detail.getString("commodityName"); + if (StringUtils.isNotBlank(commodityName) && commodityName.contains("(详见销货清单)")){ + invoiceLineList.remove(i); + } + } data.put("data", checkInvoiceResult); return ResponseEntity.ok(JSONObject.toJSONString(data)); @@ -679,6 +687,15 @@ public class SDNYMainProcessController extends AbstractController { map.put("taxRate", "0.00"); } } + + JSONArray invoiceLineList = checkInvoiceResult.getJSONArray("invoiceLineList"); + for (int i = 0; i < invoiceLineList.size(); i++) { + JSONObject detail = invoiceLineList.getJSONObject(i); + String commodityName = detail.getString("commodityName"); + if (StringUtils.isNotBlank(commodityName) && "(详见销货清单)".equals(commodityName)){ + invoiceLineList.remove(i); + } + } data.put("data", checkInvoiceResult); return ResponseEntity.ok(JSONObject.toJSONString(data));