|
|
|
|
@ -6,6 +6,7 @@ import java.time.format.DateTimeFormatter;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
@ -30,13 +31,18 @@ public class NxrpController extends AbstractController {
|
|
|
|
|
private NisIndivBean nisIndivBean;
|
|
|
|
|
|
|
|
|
|
//테스트
|
|
|
|
|
@RequestMapping(name="계약정보", value="/sendIndivJeju01.do")
|
|
|
|
|
public ModelAndView sendNisIndivJeju01(NisIndivQuery req) {
|
|
|
|
|
@RequestMapping(name="계약정보 만들고 보내기", value="/sendIndivJeju01.do")
|
|
|
|
|
public ModelAndView sendNisIndivJeju01(HttpServletRequest hreq, NisIndivQuery req) {
|
|
|
|
|
|
|
|
|
|
String random = hreq.getParameter("random");
|
|
|
|
|
boolean randomFlag = true;
|
|
|
|
|
if(random != null && random.equals("N")) {
|
|
|
|
|
randomFlag = false;
|
|
|
|
|
}
|
|
|
|
|
NisIndivQuery query = new NisIndivQuery();
|
|
|
|
|
query.setSggCd("50110");
|
|
|
|
|
query.setTaskSeCd("ECA");
|
|
|
|
|
String zipPath = nisIndivBean.makeNisIndivJeju01(query,true);
|
|
|
|
|
String zipPath = nisIndivBean.makeNisIndivJeju01(query, randomFlag);
|
|
|
|
|
|
|
|
|
|
if(zipPath != null && !zipPath.equals("")) {
|
|
|
|
|
nisIndivBean.send_DO_to_SI(zipPath);
|
|
|
|
|
@ -83,7 +89,7 @@ public class NxrpController extends AbstractController {
|
|
|
|
|
|
|
|
|
|
return new ModelAndView("jsonView");
|
|
|
|
|
}
|
|
|
|
|
//테스트
|
|
|
|
|
//테스트 면허정보응답파일(로컬) 읽어서 적용하기
|
|
|
|
|
@RequestMapping(name="면허정보 응답 적용", value="/lcnsRespUnzip.do")
|
|
|
|
|
public ModelAndView lcnsRespUnzip(NisIndivQuery req) {
|
|
|
|
|
|
|
|
|
|
@ -95,7 +101,7 @@ public class NxrpController extends AbstractController {
|
|
|
|
|
return new ModelAndView("jsonView");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//테스트
|
|
|
|
|
//테스트 면허정보응답파일 가져오고 적용하기
|
|
|
|
|
@RequestMapping(name="면허정보 응답", value="/receiveIndivJeju02.do")
|
|
|
|
|
public ModelAndView receiveNisIndivJeju02(NisIndivQuery req) {
|
|
|
|
|
nisIndivBean.get_SI_to_DO();
|
|
|
|
|
@ -108,5 +114,4 @@ public class NxrpController extends AbstractController {
|
|
|
|
|
return new ModelAndView("jsonView");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|