File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/kotlin/site/billilge/api/backend Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class PayerService(
123123 val headerTitles = arrayOf(" 이름" , " 학번" )
124124 val sheetData = mutableMapOf<String , Pair <Array <String >, List <ExcelRow >>>()
125125
126- for (year in startYear .. currentYear) {
126+ for (year in currentYear downTo startYear ) {
127127 val yearText = " $year "
128128 val payersByYearExcelRow = payerRepository.findAllByEnrollmentYear(yearText)
129129 .map { payer -> ExcelRow (payer.name, payer.studentId ? : " ${yearText} XXXX" ) }
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ class ExcelGenerator {
4949 cell.setCellValue(title)
5050 cell.cellStyle = headerCellStyle
5151 }
52+
53+ // 이름 칸 너비
54+ sheet.setColumnWidth(0 , 10 )
55+ // 학번 칸 너비
56+ sheet.setColumnWidth(1 , 16 )
5257 }
5358
5459 private fun fillData (sheet : SXSSFSheet , rows : List <ExcelRow >, columnSize : Int ) {
You can’t perform that action at this time.
0 commit comments