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]); }