From 52bd6e733147c9978e120103d87c6ceee0a04273 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Mon, 13 May 2024 16:09:36 +0900 Subject: [PATCH] =?UTF-8?q?Barcode=20=EB=A6=AC=EB=8D=94=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EC=8B=9C=20=EB=B0=94=EC=BD=94=EB=93=9C=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20parsing=20->=20=EC=A0=9C=ED=92=88=EC=BD=94=EB=93=9C?= =?UTF-8?q?,=20=EC=A0=9C=EC=A1=B0=EB=B2=88=ED=98=B8,=20=EC=9C=A0=ED=9A=A8?= =?UTF-8?q?=EA=B8=B0=EA=B0=84,=20=EC=A0=9C=ED=92=88=EC=9D=BC=EB=A0=A8?= =?UTF-8?q?=EB=B2=88=ED=98=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/adds/biz/nims/model/BizNimsResponse.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/cokr/xit/adds/biz/nims/model/BizNimsResponse.java b/src/main/java/cokr/xit/adds/biz/nims/model/BizNimsResponse.java index 9791756..46ce400 100644 --- a/src/main/java/cokr/xit/adds/biz/nims/model/BizNimsResponse.java +++ b/src/main/java/cokr/xit/adds/biz/nims/model/BizNimsResponse.java @@ -276,7 +276,6 @@ public class BizNimsResponse { Pattern pattern = Pattern.compile(regx); Matcher matcher = pattern.matcher(temp); if(matcher.find()) { - //this.gsPrductCd = matcher.group(1); mnfSeqInfo.setPrductCd(matcher.group(1)); }else{ throw new IllegalArgumentException("Barcode(GS1-128) 상품코드는 확장코드(0) + 상품코드(13)로 구성되어야 합니다."); @@ -289,8 +288,8 @@ public class BizNimsResponse { pattern = Pattern.compile(regx); matcher = pattern.matcher(temp); if(matcher.find()) { - //this.gsDistributionDate = matcher.group(1); - mnfSeqInfo.setPrdValidDe(matcher.group(1)); + // 20xx년 유통일자 + mnfSeqInfo.setPrdValidDe("20" + matcher.group(1)); }else{ throw new IllegalArgumentException("Barcode(GS1-128) 유통일자는 AI최대유통일자(17) + 유통일자(6)로 구성되어야 합니다."); } @@ -301,7 +300,6 @@ public class BizNimsResponse { pattern = Pattern.compile(regx); matcher = pattern.matcher(barcode); if(matcher.find()) { - //this.gsMnfNo = matcher.group(1); mnfSeqInfo.setMnfNo(matcher.group(1)); }else { throw new IllegalArgumentException("Barcode(GS1-128) 제조번호는 AI로트번호(10)로 시작 되어 AI일련번호(21)로 끝나야 합니다."); @@ -313,7 +311,6 @@ public class BizNimsResponse { pattern = Pattern.compile(regx); matcher = pattern.matcher(barcode); if(matcher.find()) { - //this.gsMnfSeqNo = matcher.group(1); mnfSeqInfo.setMnfSeq(matcher.group(1)); }else { throw new IllegalArgumentException("Barcode(GS1-128) 제조일련번호는 AI일련번호(21)로 시작 되어야 합니다.");