From 3f295633aba838a0b19187c28c8eb285510c22c1 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 26 Feb 2024 18:05:32 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=91=EC=85=80=20=EB=8B=A4=EC=9A=B4?= =?UTF-8?q?=EB=A1=9C=EB=93=9C=20=EB=A1=9C=EA=B7=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/fims/crdn/web/Crdn02Controller.java | 3 ++- src/main/java/cokr/xit/fims/crdn/web/Crdn03Controller.java | 3 ++- src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java | 3 ++- src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java | 3 ++- src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java | 3 ++- src/main/java/cokr/xit/fims/cvlc/web/Cvlc02Controller.java | 3 ++- src/main/java/cokr/xit/fims/cvlc/web/Cvlc03Controller.java | 3 ++- src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java | 3 ++- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn02Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn02Controller.java index 4a1c0d70..ad8167aa 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn02Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn02Controller.java @@ -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),"",""); diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn03Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn03Controller.java index f6497730..6a50ede1 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn03Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn03Controller.java @@ -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),"",""); diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java index 8a506006..a3f41c9d 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java @@ -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),"",""); diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java index fc8ca521..36b8336f 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java @@ -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); diff --git a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java index 1e54e85f..be78b681 100644 --- a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java +++ b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java @@ -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),"",""); diff --git a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc02Controller.java b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc02Controller.java index 8801d37b..4fce3351 100644 --- a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc02Controller.java +++ b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc02Controller.java @@ -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),"",""); diff --git a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc03Controller.java b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc03Controller.java index ff88ba43..2c6cdf1e 100644 --- a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc03Controller.java +++ b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc03Controller.java @@ -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),"",""); diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java index 713bd419..3a8a3fe4 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java @@ -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);