|
|
|
@ -446,6 +446,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"); |
|
|
|
|
log.info("查验货物名称{}", commodityName); |
|
|
|
|
if (StringUtils.isNotBlank(commodityName) && commodityName.contains("详见销货清单")){ |
|
|
|
|
invoiceLineList.remove(i); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
data.put("data", checkInvoiceResult); |
|
|
|
|
|
|
|
|
|
return ResponseEntity.ok(JSONObject.toJSONString(data)); |
|
|
|
@ -717,6 +726,16 @@ 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"); |
|
|
|
|
log.info("查验货物名称{}", commodityName); |
|
|
|
|
if (StringUtils.isNotBlank(commodityName) && commodityName.contains("详见销货清单")){ |
|
|
|
|
invoiceLineList.remove(i); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
data.put("data", checkInvoiceResult); |
|
|
|
|
|
|
|
|
|
return ResponseEntity.ok(JSONObject.toJSONString(data)); |
|
|
|
|