diff --git a/pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/application/spi/QueryStatusSpi.kt b/pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/application/spi/QueryStatusSpi.kt index e2c9d8cc..aed72afc 100644 --- a/pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/application/spi/QueryStatusSpi.kt +++ b/pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/application/spi/QueryStatusSpi.kt @@ -23,7 +23,7 @@ interface QueryStatusSpi { fun queryStatusByStudentIdAndStartPeriodAndEndPeriodAndToday( studentId: UUID, startPeriod: Int, - endPeriod: Int + endPeriod: Int, ): Status? fun queryMovementStudentByStudentId(studentId: UUID): Status? diff --git a/pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/user/User.kt b/pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/user/User.kt index 3553830e..7cb6acf1 100644 --- a/pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/user/User.kt +++ b/pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/user/User.kt @@ -16,6 +16,7 @@ data class User( ) { companion object { fun User.processGcn() = "${this.grade}${this.classNum}${this.paddedUserNum()}" + private fun User.paddedUserNum(): String = this.num.toString().padStart(2, '0') } } diff --git a/pick-infrastructure/src/main/kotlin/com/pickdsm/pickserverspring/domain/application/persistence/adapter/StatusPersistenceAdapter.kt b/pick-infrastructure/src/main/kotlin/com/pickdsm/pickserverspring/domain/application/persistence/adapter/StatusPersistenceAdapter.kt index e1a858ba..b2f59517 100644 --- a/pick-infrastructure/src/main/kotlin/com/pickdsm/pickserverspring/domain/application/persistence/adapter/StatusPersistenceAdapter.kt +++ b/pick-infrastructure/src/main/kotlin/com/pickdsm/pickserverspring/domain/application/persistence/adapter/StatusPersistenceAdapter.kt @@ -241,15 +241,15 @@ class StatusPersistenceAdapter( statusEntity.studentId, statusEntity.startPeriod, statusEntity.endPeriod, - applicationEntity.reason - ) + applicationEntity.reason, + ), ) .from(statusEntity) .innerJoin(applicationEntity) .on(statusEntity.id.eq(applicationEntity.statusEntity.id)) .where( statusEntity.date.eq(LocalDate.now()), - statusEntity.type.eq(StatusType.AWAIT) + statusEntity.type.eq(StatusType.AWAIT), ) .fetch() }