From 2983a32c3e1c93f6cbc46b718c358bac60bf2d97 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Tue, 26 Mar 2024 11:29:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8C=BB=E4=BF=9D=E8=80=97=E6=9D=90?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/thrsys/impl/ThrInvOrderServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java index 79f469470..59387fbec 100644 --- a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java +++ b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java @@ -461,7 +461,7 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { thrInvOrder.setUpdateTime(new Date()); thrInvOrder.setUpdateUser(userId + ""); - String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo() + "," + newBillNo); + String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo()) +( "," + newBillNo); // 检查字符串是否以逗号开始 if (toBillNo.startsWith(",")) { // 使用substring()去掉第一个字符 @@ -563,7 +563,7 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { thrInvOrderDetailMapper.updateBatchById(updateThrInvOrderDetails); ioOrderService.insertOrder(ioOrderEntity); - String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo() + "," + newBillNo); + String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo()) +( "," + newBillNo); // 检查字符串是否以逗号开始 if (toBillNo.startsWith(",")) { // 使用substring()去掉第一个字符 @@ -954,7 +954,7 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { } } - String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo() + "," + newBillNo); + String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo()) +( "," + newBillNo); // 检查字符串是否以逗号开始 if (toBillNo.startsWith(",")) { // 使用substring()去掉第一个字符 @@ -1117,7 +1117,7 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { throw new JsonException("第三方普耗明细自动转化单据异常"); } } - String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo() + "," + newBillNo); + String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo()) +( "," + newBillNo); // 检查字符串是否以逗号开始 if (toBillNo.startsWith(",")) { // 使用substring()去掉第一个字符 @@ -1208,7 +1208,7 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { throw new JsonException("第三方高耗明细自动转化单据异常"); } - String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo() + "," + newBillNo); + String toBillNo = (thrInvOrder.getToBillNo()==null?"":thrInvOrder.getToBillNo()) +( "," + newBillNo); // 检查字符串是否以逗号开始 if (toBillNo.startsWith(",")) { // 使用substring()去掉第一个字符