From e71cf734542a2878d0f6f4c3ebe30f81b09728b6 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 23 Jul 2024 13:58:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=91=EC=85=80=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=EC=9D=98=20=EC=85=80=20=EB=84=88=EB=B9=84=20=EC=9E=90=EB=8F=99?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/syslog/web/LoggingController.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/java/cokr/xit/base/syslog/web/LoggingController.java b/src/main/java/cokr/xit/base/syslog/web/LoggingController.java index 92a01c9..fb82165 100644 --- a/src/main/java/cokr/xit/base/syslog/web/LoggingController.java +++ b/src/main/java/cokr/xit/base/syslog/web/LoggingController.java @@ -48,7 +48,7 @@ public class LoggingController extends AbstractController { if (!download) setFetchSize(req); else - req.setPageNum(0).setFetchSize(0); + req.setFetchAll(true); String toDate = req.getToDate(), @@ -97,18 +97,20 @@ public class LoggingController extends AbstractController { private ModelAndView download(List list) { List cellDefs = List.of( - new CellDef().setLabel("계정").setField("USER_ACNT").setWidth(10), + new CellDef().setLabel("계정").setField("USER_ACNT"), new CellDef().setLabel("사용자이름").setField("USER_NM").setWidth(16), - new CellDef().setLabel("IP 주소").setField("IP_ADDR").setWidth(16), + new CellDef().setLabel("IP 주소").setField("IP_ADDR"), new CellDef().setLabel("로그유형").setField("LOG_TYPE_NM").setWidth(16), - new CellDef().setLabel("접속일시").setField("REG_DT").setWidth(24), - new CellDef().setLabel("URL").setField("URL").setWidth(32), - new CellDef().setLabel("설명").setField("DSCRP").setWidth(32), + new CellDef().setLabel("접속일시").setField("REG_DT"), + new CellDef().setLabel("URL").setField("URL"), + new CellDef().setLabel("설명").setField("DSCRP"), new CellDef().setLabel("파일이름").setField("FILE_NM").setWidth(32), - new CellDef().setLabel("민감정보").setField("PSNL_INFO").setWidth(32) + new CellDef().setLabel("민감정보").setField("PSNL_INFO") ); + XLSWriter xlsx = new XLSWriter() .worksheet(0) + .trackWidth(CellDef.trackWidth(cellDefs)) .cell(0, 0) .value("시스템 로그 목록").merge(0, cellDefs.size() - 1) .cell(2, 0) @@ -117,7 +119,8 @@ public class LoggingController extends AbstractController { .values( list, CellDef.values(cellDefs) - ); + ) + .autoWidth(); return new ModelAndView("downloadView") .addObject("download",