소스코드 정리

main
이범준 1 year ago
parent 1bff600fd2
commit bf35489b79

@ -16,7 +16,6 @@ import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.file.FileInfo; import cokr.xit.base.file.FileInfo;
import cokr.xit.base.file.service.FileQuery; 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.base.file.service.bean.FileBean;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile; import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile;
@ -39,9 +38,6 @@ import kr.dogfoot.hwplib.writer.HWPWriter;
@Service("crdn01Service") @Service("crdn01Service")
public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnService { public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnService {
@Resource(name="fileService")
protected FileService fileService;
@Resource(name="crdn01Mapper") @Resource(name="crdn01Mapper")
protected Crdn01Mapper crdn01Mapper; protected Crdn01Mapper crdn01Mapper;
@ -147,7 +143,7 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic
fileQuery.setInfoKeys(dataObject.string("LINK_ID")); fileQuery.setInfoKeys(dataObject.string("LINK_ID"));
List<DataObject> fileInfoList = fileService.getFileList(fileQuery); List<DataObject> fileInfoList = fileBean.getFileList(fileQuery);
fileInfoList = fileInfoList.stream() fileInfoList = fileInfoList.stream()
.filter(fileInfo -> fileInfo.string("MIME_TYPE").startsWith("image")) .filter(fileInfo -> fileInfo.string("MIME_TYPE").startsWith("image"))
@ -200,7 +196,7 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic
FileQuery fileQuery = new FileQuery(); FileQuery fileQuery = new FileQuery();
fileQuery.setInfoType(Crdn.INF_TYPE); fileQuery.setInfoType(Crdn.INF_TYPE);
fileQuery.setInfoKeys(req.getCrdnId()); fileQuery.setInfoKeys(req.getCrdnId());
List<DataObject> fileList = fileService.getFileList(fileQuery); List<DataObject> fileList = fileBean.getFileList(fileQuery);
if(fileList != null && !fileList.isEmpty()) { if(fileList != null && !fileList.isEmpty()) {
dataObject.set("fileList", fileList); dataObject.set("fileList", fileList);
} }
@ -219,7 +215,7 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic
} }
fileQuery.setInfoKeys(dataObject.string("LINK_ID")); fileQuery.setInfoKeys(dataObject.string("LINK_ID"));
List<DataObject> linkFileList = fileService.getFileList(fileQuery); List<DataObject> linkFileList = fileBean.getFileList(fileQuery);
if(linkFileList != null && !linkFileList.isEmpty()) { if(linkFileList != null && !linkFileList.isEmpty()) {
for(int i=0; i < linkFileList.size(); i++) { for(int i=0; i < linkFileList.size(); i++) {
String mimeType = linkFileList.get(i).string("MIME_TYPE"); String mimeType = linkFileList.get(i).string("MIME_TYPE");
@ -248,16 +244,9 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic
crdn.setFileChgCnt(fileInsertEffected - fileDeleteEffected); crdn.setFileChgCnt(fileInsertEffected - fileDeleteEffected);
return saveCivilComplaint(crdn);
}
public boolean saveCivilComplaint(Crdn crdn) {
//TODO : crdn01Mapper.saveCivilComplaint(crdn);
return crdn06Bean.update(crdn); return crdn06Bean.update(crdn);
}
}
} }

@ -4,7 +4,6 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.dao.Crdn05Mapper; import cokr.xit.fims.crdn.dao.Crdn05Mapper;
import cokr.xit.foundation.AbstractComponent; import cokr.xit.foundation.AbstractComponent;
@ -15,10 +14,6 @@ import cokr.xit.foundation.AbstractComponent;
@Component("crdn05Bean") @Component("crdn05Bean")
public class Crdn05Bean extends AbstractComponent { public class Crdn05Bean extends AbstractComponent {
@Resource(name="fileBean")
private FileBean fileBean;
@Resource(name = "crdn05Mapper") @Resource(name = "crdn05Mapper")
private Crdn05Mapper crdn05Mapper; private Crdn05Mapper crdn05Mapper;

Loading…
Cancel
Save