From 948bebd8d4ea32ed8d1d31d95564b26c780571c6 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 4 Mar 2024 10:00:55 +0900 Subject: [PATCH] =?UTF-8?q?responseSerialNo(int)=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/interfaces/lntris/SpecialInterface.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/cokr/xit/interfaces/lntris/SpecialInterface.java b/src/main/java/cokr/xit/interfaces/lntris/SpecialInterface.java index ff7821f..5cb14bf 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/SpecialInterface.java +++ b/src/main/java/cokr/xit/interfaces/lntris/SpecialInterface.java @@ -1,11 +1,23 @@ package cokr.xit.interfaces.lntris; +import java.text.DecimalFormat; + /**세외수입 특화시스템 연계 정보 * @param 출발지 메시지 유형 * @param 도착지 메시지 유형 * @author mjkhan */ public abstract class SpecialInterface extends InterfaceInfo { + private static final DecimalFormat serialFormat = new DecimalFormat("00000"); + + /**응답 일련번호를 반환한다. + * @param i 숫자 + * @return 응답 일련번호 + */ + public static final String responseSerialNo(int i) { + return serialFormat.format(i); + } + @Override public String type() { return "special";