Skip to content

Commit

Permalink
chore: (#556) 코멘트 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
alsdl0629 committed Feb 19, 2024
1 parent 00658e8 commit de7f457
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,18 @@ class ExcelAdapter : ParseFilePort, WriteFilePort {
attributes.addAll(listOf("동행${order} 이름", "동행${order} 학번"))
}

val outingApplicationInfosList = outingApplicationVos.map {
val details = mutableListOf(
it.studentName,
it.studentGcn,
it.outAt.toString(),
it.outingTime.toString(),
it.arrivalTime.toString()
)

it.outingCompanionVOs.forEach { outingCompanion ->
details.addAll(listOf(outingCompanion.studentName, outingCompanion.studentGcn))
val outingApplicationInfosList = outingApplicationVos.map { outingApplication ->
mutableListOf(
outingApplication.studentName,
outingApplication.studentGcn,
outingApplication.outAt.toString(),
outingApplication.outingTime.toString(),
outingApplication.arrivalTime.toString()
).apply {
outingApplication.outingCompanionVOs.forEach { outingCompanion ->
addAll(listOf(outingCompanion.studentName, outingCompanion.studentGcn))
}
}

details
}

return createExcelSheet(attributes, outingApplicationInfosList)
Expand Down

0 comments on commit de7f457

Please sign in to comment.