From f297e1c4c5df67c34a08eb72707037077e794b0e Mon Sep 17 00:00:00 2001 From: jun Date: Wed, 13 Nov 2024 10:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=9D=A1=E7=A0=81=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apiservice/serviceimpl/print/strategy/CustSnPrintStrategy.java | 2 +- .../apiservice/serviceimpl/print/strategy/WuhanSnPrintStrategy.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/print/strategy/CustSnPrintStrategy.java b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/print/strategy/CustSnPrintStrategy.java index af80064..03293b5 100644 --- a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/print/strategy/CustSnPrintStrategy.java +++ b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/print/strategy/CustSnPrintStrategy.java @@ -119,7 +119,7 @@ public class CustSnPrintStrategy implements IPrintTemplateStrategyService { if (index < 6) dunsLengthEnd += Integer.parseInt(ruleLengthSpiltExt[index]); if (index < 6) afterContentPerfixLengthStart += Integer.parseInt(ruleLengthSpiltExt[index]); if (index < 7) afterContentPerfixLengthEnd += Integer.parseInt(ruleLengthSpiltExt[index]); - if (index < 8) afterContentLengthStart += Integer.parseInt(ruleLengthSpiltExt[index]); + if (index < 7) afterContentLengthStart += Integer.parseInt(ruleLengthSpiltExt[index]); if (index < 11) afterContentLengthEnd += Integer.parseInt(ruleLengthSpiltExt[index]); } diff --git a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/print/strategy/WuhanSnPrintStrategy.java b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/print/strategy/WuhanSnPrintStrategy.java index 5d042f6..d33666f 100644 --- a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/print/strategy/WuhanSnPrintStrategy.java +++ b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/print/strategy/WuhanSnPrintStrategy.java @@ -211,7 +211,7 @@ public class WuhanSnPrintStrategy implements IPrintTemplateStrategyService { * 转换后条码:[)>%RS%06%GS%Y4110000000000X%GS%P26560850%GS%12V545238347%GS%T1A24269A2B4C0019%RS * 客户条码 VPPS 取 第 2 * 客户条码 DUNS 取 第 5 - * 客户条码后半部分取 7 的后两位 A1到 11 + * 客户条码后半部分取 7 的后两位 1A到 11 * */ int vppsLengthStart = 0; @@ -229,7 +229,7 @@ public class WuhanSnPrintStrategy implements IPrintTemplateStrategyService { if (index < 6) dunsLengthEnd += Integer.parseInt(ruleLengthSpiltExt[index]); if (index < 6) afterContentPerfixLengthStart += Integer.parseInt(ruleLengthSpiltExt[index]); if (index < 7) afterContentPerfixLengthEnd += Integer.parseInt(ruleLengthSpiltExt[index]); - if (index < 8) afterContentLengthStart += Integer.parseInt(ruleLengthSpiltExt[index]); + if (index < 7) afterContentLengthStart += Integer.parseInt(ruleLengthSpiltExt[index]); if (index < 11) afterContentLengthEnd += Integer.parseInt(ruleLengthSpiltExt[index]); }