From 3e2f71595a709d30db771c46f0ebbd4ecbe12c44 Mon Sep 17 00:00:00 2001 From: liuxy Date: Thu, 29 Dec 2022 14:19:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../st/outbill/service/impl/CheckOutBillServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/st/outbill/service/impl/CheckOutBillServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/st/outbill/service/impl/CheckOutBillServiceImpl.java index fe16ce6ec..5c0aad69b 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/st/outbill/service/impl/CheckOutBillServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/st/outbill/service/impl/CheckOutBillServiceImpl.java @@ -2924,7 +2924,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService { String box_no = json.getString("box_no"); String sub_box_no = ""; if (ObjectUtil.isNotEmpty(box_no)) { - sub_box_no = box_no.substring(box_no.lastIndexOf("@")+1, box_no.length()); + try { + sub_box_no = box_no.substring(box_no.lastIndexOf("@")+1, box_no.length()); + } catch (Exception e) { + sub_box_no = box_no; + } } HashMap mapFL = new HashMap<>();