엑셀 다운로드 로그 추가

main
이범준 9 months ago
parent 42931d6a5d
commit 3f295633ab

@ -139,7 +139,8 @@ public class Crdn02Controller extends ApplicationController {
.cell(4, 0)
.values(list, CellDef.values(cellDefs));
return new ModelAndView("xlsView").addObject("xls", xlsx);
return new ModelAndView("xlsView").addObject("xls", xlsx)
.addObject("downloadData", list).addObject("dataNames", cellDefs.stream().map(CellDef::getLabel).toList());
}
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"","");

@ -110,7 +110,8 @@ public class Crdn03Controller extends ApplicationController {
.cell(4, 0)
.values(list, CellDef.values(cellDefs));
return new ModelAndView("xlsView").addObject("xls", xlsx);
return new ModelAndView("xlsView").addObject("xls", xlsx)
.addObject("downloadData", list).addObject("dataNames", cellDefs.stream().map(CellDef::getLabel).toList());
}
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"","");

@ -165,7 +165,8 @@ public class Crdn06Controller extends ApplicationController {
.cell(4, 0)
.values(list, CellDef.values(cellDefs));
return new ModelAndView("xlsView").addObject("xls", xlsx);
return new ModelAndView("xlsView").addObject("xls", xlsx)
.addObject("downloadData", list).addObject("dataNames", cellDefs.stream().map(CellDef::getLabel).toList());
}
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"","");

@ -113,7 +113,8 @@ public class Crdn08Controller extends ApplicationController {
.cell(4, 0)
.values(list, CellDef.values(cellDefs));
return new ModelAndView("xlsView").addObject("xls", xlsx);
return new ModelAndView("xlsView").addObject("xls", xlsx)
.addObject("downloadData", list).addObject("dataNames", cellDefs.stream().map(CellDef::getLabel).toList());
}
setFetchSize(query);

@ -160,7 +160,8 @@ public class Cvlc01Controller extends ApplicationController {
.cell(4, 0)
.values(list, CellDef.values(cellDefs));
return new ModelAndView("xlsView").addObject("xls", xlsx);
return new ModelAndView("xlsView").addObject("xls", xlsx)
.addObject("downloadData", list).addObject("dataNames", cellDefs.stream().map(CellDef::getLabel).toList());
}
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query),"","");

@ -168,7 +168,8 @@ public class Cvlc02Controller extends ApplicationController {
.cell(4, 0)
.values(list, CellDef.values(cellDefs));
return new ModelAndView("xlsView").addObject("xls", xlsx);
return new ModelAndView("xlsView").addObject("xls", xlsx)
.addObject("downloadData", list).addObject("dataNames", cellDefs.stream().map(CellDef::getLabel).toList());
}
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query),"","");

@ -125,7 +125,8 @@ public class Cvlc03Controller extends ApplicationController {
.cell(4, 0)
.values(list, CellDef.values(cellDefs));
return new ModelAndView("xlsView").addObject("xls", xlsx);
return new ModelAndView("xlsView").addObject("xls", xlsx)
.addObject("downloadData", list).addObject("dataNames", cellDefs.stream().map(CellDef::getLabel).toList());
}
return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCivilComplaintList(query),"","");

@ -272,7 +272,8 @@ public class Sprt01Controller extends ApplicationController {
.cell(4, 0)
.values(listForExcel, CellDef.values(cellDefs));
return new ModelAndView("xlsView").addObject("xls", xlsx);
return new ModelAndView("xlsView").addObject("xls", xlsx)
.addObject("downloadData", listForExcel).addObject("dataNames", cellDefs.stream().map(CellDef::getLabel).toList());
}
mav.addObject("upList", upList);

Loading…
Cancel
Save