File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/kotlin/site/billilge/api/backend/global/utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class ExcelGenerator {
2222 val (headerTitles, rows) = sheetContent
2323 val sheet = workbook.createSheet(sheetName)
2424 styleHeaders(workbook, sheet, headerTitles)
25- fillData(sheet, rows, headerTitles.size )
25+ fillData(sheet, rows)
2626 }
2727
2828 val out = ByteArrayOutputStream ()
@@ -51,12 +51,12 @@ class ExcelGenerator {
5151 }
5252
5353 // 이름 칸 너비
54- sheet.setColumnWidth(0 , 10 )
54+ sheet.setColumnWidth(0 , 10 * 256 )
5555 // 학번 칸 너비
56- sheet.setColumnWidth(1 , 16 )
56+ sheet.setColumnWidth(1 , 16 * 256 )
5757 }
5858
59- private fun fillData (sheet : SXSSFSheet , rows : List <ExcelRow >, columnSize : Int ) {
59+ private fun fillData (sheet : SXSSFSheet , rows : List <ExcelRow >) {
6060 rows.forEachIndexed { index, excelRow ->
6161 val row = sheet.createRow(index + 1 )
6262 excelRow.data.forEachIndexed { propertyIndex, property ->
You can’t perform that action at this time.
0 commit comments