|
|
@ -1,10 +1,8 @@
|
|
|
|
package kr.xit.fims.biz.ec.web;
|
|
|
|
package kr.xit.fims.biz.ec.web;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
@ -13,16 +11,13 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
|
|
import kr.xit.fims.biz.cmm.FimsConst;
|
|
|
|
import kr.xit.fims.biz.cmm.FimsConst;
|
|
|
|
import kr.xit.fims.biz.ec.model.EcNatlNewspaperRcvReqDTO;
|
|
|
|
import kr.xit.fims.biz.ec.model.EcNatlNewspaperRcvReqDTO;
|
|
|
|
import kr.xit.fims.biz.ec.model.NatlNewspaperDTO;
|
|
|
|
|
|
|
|
import kr.xit.fims.biz.ec.service.IEcNatlNewspaperService;
|
|
|
|
import kr.xit.fims.biz.ec.service.IEcNatlNewspaperService;
|
|
|
|
import kr.xit.fims.biz.ec.model.NatlNewspaperRcvXmlDTO;
|
|
|
|
|
|
|
|
import kr.xit.framework.core.constants.FrameworkConstants;
|
|
|
|
import kr.xit.framework.core.constants.FrameworkConstants;
|
|
|
|
import kr.xit.framework.core.model.ResultResponse;
|
|
|
|
import kr.xit.framework.core.model.ResultResponse;
|
|
|
|
import kr.xit.framework.core.utils.fileExplorer.XitFileExplorerUtil;
|
|
|
|
import kr.xit.framework.core.utils.fileExplorer.XitFileExplorerUtil;
|
|
|
|
import kr.xit.framework.core.utils.fileExplorer.function.DirectorySearch;
|
|
|
|
import kr.xit.framework.core.utils.fileExplorer.function.DirectorySearch;
|
|
|
|
import kr.xit.framework.support.util.AjaxMessageMapRenderer;
|
|
|
|
import kr.xit.framework.support.util.AjaxMessageMapRenderer;
|
|
|
|
import kr.xit.framework.support.util.constants.MessageKey;
|
|
|
|
import kr.xit.framework.support.util.constants.MessageKey;
|
|
|
|
import kr.xit.framework.support.util.xml.XmlParseUtils;
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
|
|
|
@ -31,6 +26,12 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
@Controller
|
|
|
|
@Controller
|
|
|
|
@RequestMapping(value = "/fims/biz/ec")
|
|
|
|
@RequestMapping(value = "/fims/biz/ec")
|
|
|
|
public class EcNatlNewspaperController {
|
|
|
|
public class EcNatlNewspaperController {
|
|
|
|
|
|
|
|
@Value("#{prop['file.rcv.root']}")
|
|
|
|
|
|
|
|
private String fileRcvRoot;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("#{prop['file.rcv.natl-newspaper.path']}")
|
|
|
|
|
|
|
|
private String rcvNatlNewspaperPath;
|
|
|
|
|
|
|
|
|
|
|
|
private final IEcNatlNewspaperService service;
|
|
|
|
private final IEcNatlNewspaperService service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -41,7 +42,7 @@ public class EcNatlNewspaperController {
|
|
|
|
@RequestMapping(value = "/ecNatlNewspaperFileSelPopup")
|
|
|
|
@RequestMapping(value = "/ecNatlNewspaperFileSelPopup")
|
|
|
|
public ModelAndView ecNatlNewspaperFileSelPopup(){
|
|
|
|
public ModelAndView ecNatlNewspaperFileSelPopup(){
|
|
|
|
ModelAndView mav = new ModelAndView(FimsConst.FIMS_JSP_BASE_PATH +"ec/ecNatlNewspaperFileSelPopup.popup");
|
|
|
|
ModelAndView mav = new ModelAndView(FimsConst.FIMS_JSP_BASE_PATH +"ec/ecNatlNewspaperFileSelPopup.popup");
|
|
|
|
mav.addObject("dirPath", "/Users/minuk/project_data/fims/01. 연계/01. 국민신문고/rcv");
|
|
|
|
mav.addObject("dirPath", fileRcvRoot + rcvNatlNewspaperPath);
|
|
|
|
return mav;
|
|
|
|
return mav;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|