반송 컨트롤러 수정

main
이범준 9 months ago
parent 1c80d16894
commit e0cd01dcda

@ -1599,7 +1599,7 @@ public class Sndb01Controller extends ApplicationController {
* @return PDF * @return PDF
*/ */
public ModelAndView makeAdvntcePdf(PrintOption printOption, String sndngId) { public ModelAndView makeAdvntcePdf(PrintOption printOption, String sndngId) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("downloadView");
List<DataObject> list = sndngDtlService.getSndngTrgtCrdnIds(sndngId); List<DataObject> list = sndngDtlService.getSndngTrgtCrdnIds(sndngId);
@ -1609,7 +1609,7 @@ public class Sndb01Controller extends ApplicationController {
crdnIds[iLoop] = list.get(iLoop).string("CRDN_ID"); crdnIds[iLoop] = list.get(iLoop).string("CRDN_ID");
} }
Map<String,String> result = integrationSearchService.makePdfFile("info", "advntce", printOption, crdnIds); Map<String, Object> result = integrationSearchService.makePdfFile("info", "advntce", printOption, crdnIds);
mav.addAllObjects(result); mav.addAllObjects(result);
@ -1620,7 +1620,7 @@ public class Sndb01Controller extends ApplicationController {
* @return * @return
*/ */
public ModelAndView makeAdvntceOutsourcing(PrintOption printOption, String sndngId) { public ModelAndView makeAdvntceOutsourcing(PrintOption printOption, String sndngId) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("downloadView");
List<DataObject> list = sndngDtlService.getSndngTrgtCrdnIds(sndngId); List<DataObject> list = sndngDtlService.getSndngTrgtCrdnIds(sndngId);
@ -1630,7 +1630,7 @@ public class Sndb01Controller extends ApplicationController {
crdnIds[iLoop] = list.get(iLoop).string("CRDN_ID"); crdnIds[iLoop] = list.get(iLoop).string("CRDN_ID");
} }
Map<String,String> result = integrationSearchService.makeOutsourcingFile("advntce", printOption, crdnIds); Map<String, Object> result = integrationSearchService.makeOutsourcingFile("advntce", printOption, crdnIds);
mav.addAllObjects(result); mav.addAllObjects(result);

Loading…
Cancel
Save