From bf35489b7989a0d9d5abcf1295fda43e75896d23 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 9 Aug 2023 12:17:07 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crdn/service/bean/Crdn01ServiceBean.java | 19 ++++--------------- .../fims/crdn/service/bean/Crdn05Bean.java | 5 ----- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java index 9f0bcb4a..a0cffa54 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java @@ -16,7 +16,6 @@ import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.file.FileInfo; import cokr.xit.base.file.service.FileQuery; -import cokr.xit.base.file.service.FileService; import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile; @@ -39,9 +38,6 @@ import kr.dogfoot.hwplib.writer.HWPWriter; @Service("crdn01Service") public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnService { - @Resource(name="fileService") - protected FileService fileService; - @Resource(name="crdn01Mapper") protected Crdn01Mapper crdn01Mapper; @@ -147,7 +143,7 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic fileQuery.setInfoKeys(dataObject.string("LINK_ID")); - List fileInfoList = fileService.getFileList(fileQuery); + List fileInfoList = fileBean.getFileList(fileQuery); fileInfoList = fileInfoList.stream() .filter(fileInfo -> fileInfo.string("MIME_TYPE").startsWith("image")) @@ -200,7 +196,7 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic FileQuery fileQuery = new FileQuery(); fileQuery.setInfoType(Crdn.INF_TYPE); fileQuery.setInfoKeys(req.getCrdnId()); - List fileList = fileService.getFileList(fileQuery); + List fileList = fileBean.getFileList(fileQuery); if(fileList != null && !fileList.isEmpty()) { dataObject.set("fileList", fileList); } @@ -219,7 +215,7 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic } fileQuery.setInfoKeys(dataObject.string("LINK_ID")); - List linkFileList = fileService.getFileList(fileQuery); + List linkFileList = fileBean.getFileList(fileQuery); if(linkFileList != null && !linkFileList.isEmpty()) { for(int i=0; i < linkFileList.size(); i++) { String mimeType = linkFileList.get(i).string("MIME_TYPE"); @@ -248,16 +244,9 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic crdn.setFileChgCnt(fileInsertEffected - fileDeleteEffected); - return saveCivilComplaint(crdn); - - } - - public boolean saveCivilComplaint(Crdn crdn) { - //TODO : crdn01Mapper.saveCivilComplaint(crdn); - return crdn06Bean.update(crdn); - } + } } diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn05Bean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn05Bean.java index dbe9b3bc..9110a94a 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn05Bean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn05Bean.java @@ -4,7 +4,6 @@ import javax.annotation.Resource; import org.springframework.stereotype.Component; -import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.dao.Crdn05Mapper; import cokr.xit.foundation.AbstractComponent; @@ -15,10 +14,6 @@ import cokr.xit.foundation.AbstractComponent; @Component("crdn05Bean") public class Crdn05Bean extends AbstractComponent { - - @Resource(name="fileBean") - private FileBean fileBean; - @Resource(name = "crdn05Mapper") private Crdn05Mapper crdn05Mapper;