|
|
|
@ -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<DataObject> fileInfoList = fileService.getFileList(fileQuery);
|
|
|
|
|
List<DataObject> 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<DataObject> fileList = fileService.getFileList(fileQuery);
|
|
|
|
|
List<DataObject> 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<DataObject> linkFileList = fileService.getFileList(fileQuery);
|
|
|
|
|
List<DataObject> 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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|