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()去掉第一个字符