|
|
@ -48,7 +48,7 @@ public class LoggingController extends AbstractController {
|
|
|
|
if (!download)
|
|
|
|
if (!download)
|
|
|
|
setFetchSize(req);
|
|
|
|
setFetchSize(req);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
req.setPageNum(0).setFetchSize(0);
|
|
|
|
req.setFetchAll(true);
|
|
|
|
|
|
|
|
|
|
|
|
String
|
|
|
|
String
|
|
|
|
toDate = req.getToDate(),
|
|
|
|
toDate = req.getToDate(),
|
|
|
@ -97,18 +97,20 @@ public class LoggingController extends AbstractController {
|
|
|
|
|
|
|
|
|
|
|
|
private ModelAndView download(List<DataObject> list) {
|
|
|
|
private ModelAndView download(List<DataObject> list) {
|
|
|
|
List<CellDef> cellDefs = List.of(
|
|
|
|
List<CellDef> 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("사용자이름").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("LOG_TYPE_NM").setWidth(16),
|
|
|
|
new CellDef().setLabel("접속일시").setField("REG_DT").setWidth(24),
|
|
|
|
new CellDef().setLabel("접속일시").setField("REG_DT"),
|
|
|
|
new CellDef().setLabel("URL").setField("URL").setWidth(32),
|
|
|
|
new CellDef().setLabel("URL").setField("URL"),
|
|
|
|
new CellDef().setLabel("설명").setField("DSCRP").setWidth(32),
|
|
|
|
new CellDef().setLabel("설명").setField("DSCRP"),
|
|
|
|
new CellDef().setLabel("파일이름").setField("FILE_NM").setWidth(32),
|
|
|
|
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()
|
|
|
|
XLSWriter xlsx = new XLSWriter()
|
|
|
|
.worksheet(0)
|
|
|
|
.worksheet(0)
|
|
|
|
|
|
|
|
.trackWidth(CellDef.trackWidth(cellDefs))
|
|
|
|
.cell(0, 0)
|
|
|
|
.cell(0, 0)
|
|
|
|
.value("시스템 로그 목록").merge(0, cellDefs.size() - 1)
|
|
|
|
.value("시스템 로그 목록").merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(2, 0)
|
|
|
|
.cell(2, 0)
|
|
|
@ -117,7 +119,8 @@ public class LoggingController extends AbstractController {
|
|
|
|
.values(
|
|
|
|
.values(
|
|
|
|
list,
|
|
|
|
list,
|
|
|
|
CellDef.values(cellDefs)
|
|
|
|
CellDef.values(cellDefs)
|
|
|
|
);
|
|
|
|
)
|
|
|
|
|
|
|
|
.autoWidth();
|
|
|
|
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download",
|
|
|
|
.addObject("download",
|
|
|
|