diff --git a/src/main/java/cokr/xit/fims/rent/web/Rent04Controller.java b/src/main/java/cokr/xit/fims/rent/web/Rent04Controller.java index 8cd016d6..e1737b25 100644 --- a/src/main/java/cokr/xit/fims/rent/web/Rent04Controller.java +++ b/src/main/java/cokr/xit/fims/rent/web/Rent04Controller.java @@ -241,6 +241,10 @@ public class Rent04Controller extends ApplicationController { ModelAndView mav = new ModelAndView("downloadView"); XLSWriter xlsx = new XLSWriter().worksheet(0); + CellStyle unformattedText = xlsx.workbook().createCellStyle(); + short short_text = xlsx.workbook().createDataFormat().getFormat("@"); + unformattedText.setDataFormat(short_text); + List cellDefs = new ArrayList(); cellDefs.add(new CellDef().setField("A").setLabel("관리번호")); cellDefs.add(new CellDef().setField("B").setLabel("전자납부번호")); @@ -259,6 +263,12 @@ public class Rent04Controller extends ApplicationController { cellDefs.add(new CellDef().setField("O").setLabel("변경자 상세주소")); cellDefs.add(new CellDef().setField("P").setLabel("변경자 우편번호")); + Map valueMap = new HashMap(); + for(CellDef def : cellDefs) { + valueMap.put(def.getLabel(), unformattedText); + } + CellDef.setValues(cellDefs, valueMap); + List list = fromJson(query.getCellDataDef(), new TypeReference>(){}); xlsx.cell(0, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)));