From 445fa10751252dce132e808120a97be76a5465d1 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 12 Oct 2023 11:15:29 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=B4=EB=9E=98=EC=8A=A4=EB=AA=85=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...{XitParser.java => AttachedTxtParser.java} | 2 +- .../{InoParser.java => OnlyImageParser.java} | 2 +- ...teComParser.java => SingleFileParser.java} | 2 +- .../crdn/service/bean/ImportServiceBean.java | 8 +++---- .../xit/fims/crdn/web/Crdn05Controller.java | 24 +++++++++---------- 5 files changed, 19 insertions(+), 19 deletions(-) rename src/main/java/cokr/xit/fims/crdn/parsing/{XitParser.java => AttachedTxtParser.java} (98%) rename src/main/java/cokr/xit/fims/crdn/parsing/{InoParser.java => OnlyImageParser.java} (98%) rename src/main/java/cokr/xit/fims/crdn/parsing/{HiteComParser.java => SingleFileParser.java} (99%) diff --git a/src/main/java/cokr/xit/fims/crdn/parsing/XitParser.java b/src/main/java/cokr/xit/fims/crdn/parsing/AttachedTxtParser.java similarity index 98% rename from src/main/java/cokr/xit/fims/crdn/parsing/XitParser.java rename to src/main/java/cokr/xit/fims/crdn/parsing/AttachedTxtParser.java index 1868ea0e..1c9f1c3f 100644 --- a/src/main/java/cokr/xit/fims/crdn/parsing/XitParser.java +++ b/src/main/java/cokr/xit/fims/crdn/parsing/AttachedTxtParser.java @@ -16,7 +16,7 @@ import org.apache.commons.io.FilenameUtils; import cokr.xit.foundation.data.DataObject; -public class XitParser implements LayoutParser{ +public class AttachedTxtParser implements LayoutParser{ private DataObject before = new DataObject(); private int tempGroupSeq = 1; diff --git a/src/main/java/cokr/xit/fims/crdn/parsing/InoParser.java b/src/main/java/cokr/xit/fims/crdn/parsing/OnlyImageParser.java similarity index 98% rename from src/main/java/cokr/xit/fims/crdn/parsing/InoParser.java rename to src/main/java/cokr/xit/fims/crdn/parsing/OnlyImageParser.java index 23dd931f..d0b82085 100644 --- a/src/main/java/cokr/xit/fims/crdn/parsing/InoParser.java +++ b/src/main/java/cokr/xit/fims/crdn/parsing/OnlyImageParser.java @@ -15,7 +15,7 @@ import org.apache.commons.io.FilenameUtils; import cokr.xit.foundation.data.DataObject; -public class InoParser implements LayoutParser { +public class OnlyImageParser implements LayoutParser { private DataObject before = new DataObject(); private int tempGroupSeq = 1; diff --git a/src/main/java/cokr/xit/fims/crdn/parsing/HiteComParser.java b/src/main/java/cokr/xit/fims/crdn/parsing/SingleFileParser.java similarity index 99% rename from src/main/java/cokr/xit/fims/crdn/parsing/HiteComParser.java rename to src/main/java/cokr/xit/fims/crdn/parsing/SingleFileParser.java index 89b56cdc..49ec7ad0 100644 --- a/src/main/java/cokr/xit/fims/crdn/parsing/HiteComParser.java +++ b/src/main/java/cokr/xit/fims/crdn/parsing/SingleFileParser.java @@ -18,7 +18,7 @@ import cokr.xit.base.file.FileInfo; import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.foundation.data.DataObject; -public class HiteComParser implements LayoutParser { +public class SingleFileParser implements LayoutParser { private int tempGroupSeq = 1; diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java index 98b4fe7b..737e4b7d 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java @@ -19,7 +19,7 @@ import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.base.file.web.FileInfoFactory; import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.dao.GlobalStngMapper; -import cokr.xit.fims.crdn.parsing.HiteComParser; +import cokr.xit.fims.crdn.parsing.SingleFileParser; import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.ImportService; import cokr.xit.foundation.component.AbstractServiceBean; @@ -222,16 +222,16 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ //linkFileInfo.string("PLATE_HEIGHT"); try { - FileInfo FileInfo1 = HiteComParser.base64ToFileInfo(linkFileInfo.string("CAR_IMAGE_NM"), linkFileInfo.string("CAR_IMAGE"), 1); + FileInfo FileInfo1 = SingleFileParser.base64ToFileInfo(linkFileInfo.string("CAR_IMAGE_NM"), linkFileInfo.string("CAR_IMAGE"), 1); fileInfoList.add(FileInfo1); - FileInfo FileInfo2 = HiteComParser.base64ToFileInfo(linkFileInfo.string("PLATE_IMAGE_NM"), linkFileInfo.string("PLATE_IMAGE"), 2); + FileInfo FileInfo2 = SingleFileParser.base64ToFileInfo(linkFileInfo.string("PLATE_IMAGE_NM"), linkFileInfo.string("PLATE_IMAGE"), 2); fileInfoList.add(FileInfo2); int otherPhotoCnt = linkFileInfo.number("PHOTO_CNT").intValue() - 2; for(int i=1; i <= otherPhotoCnt; i++){ String fileName = linkFileInfo.string("MOVING_IMAGE"+i+"_NM"); String b64str = linkFileInfo.string("MOVING_IMAGE"+i); - FileInfo FileInfo = HiteComParser.base64ToFileInfo(fileName, b64str, i + 2); + FileInfo FileInfo = SingleFileParser.base64ToFileInfo(fileName, b64str, i + 2); fileInfoList.add(FileInfo); } diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java index cb217a17..41ef5c3f 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java @@ -28,10 +28,10 @@ import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.dao.CrdnInstMapper; import cokr.xit.fims.crdn.dao.GlobalStngMapper; import cokr.xit.fims.crdn.parsing.LayoutParser; -import cokr.xit.fims.crdn.parsing.HiteComParser; -import cokr.xit.fims.crdn.parsing.InoParser; +import cokr.xit.fims.crdn.parsing.SingleFileParser; +import cokr.xit.fims.crdn.parsing.OnlyImageParser; import cokr.xit.fims.crdn.parsing.ParsingUtil; -import cokr.xit.fims.crdn.parsing.XitParser; +import cokr.xit.fims.crdn.parsing.AttachedTxtParser; import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnStngService; import cokr.xit.fims.crdn.service.ImportService; @@ -131,10 +131,10 @@ public class Crdn05Controller extends ApplicationController { String entType = hReq.getParameter("entType"); LayoutParser enterprise = null; switch(entType){ - case "ino": enterprise = new InoParser(); break; + case "ino": enterprise = new OnlyImageParser(); break; //case "knl": break; - case "hitecom": enterprise = new HiteComParser(); break; - case "xit": enterprise = new XitParser(); break; + case "hitecom": enterprise = new SingleFileParser(); break; + case "xit": enterprise = new AttachedTxtParser(); break; //case "": enterprise = new (); break; } @@ -187,10 +187,10 @@ public class Crdn05Controller extends ApplicationController { String entType = hReq.getParameter("entType"); LayoutParser enterprise = null; switch(entType){ - case "ino": enterprise = new InoParser(); break; + case "ino": enterprise = new OnlyImageParser(); break; //case "knl": break; - case "hitecom": enterprise = new HiteComParser(); break; - case "xit": enterprise = new XitParser(); break; + case "hitecom": enterprise = new SingleFileParser(); break; + case "xit": enterprise = new AttachedTxtParser(); break; //case "": enterprise = new (); break; } @@ -226,10 +226,10 @@ public class Crdn05Controller extends ApplicationController { String entType = hReq.getParameter("entType"); LayoutParser enterprise = null; switch(entType){ - case "ino": enterprise = new InoParser(); break; + case "ino": enterprise = new OnlyImageParser(); break; //case "knl": break; - case "hitecom": enterprise = new HiteComParser(); break; - case "xit": enterprise = new XitParser(); break; + case "hitecom": enterprise = new SingleFileParser(); break; + case "xit": enterprise = new AttachedTxtParser(); break; //case "": enterprise = new (); break; }