From 25782d442fcb2d49116e06b89e1800a8e4d2a2b9 Mon Sep 17 00:00:00 2001 From: liuxy Date: Thu, 29 Dec 2022 14:18:22 +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 5e762fd0f..fe16ce6ec 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 @@ -2873,7 +2873,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<>();