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;