Skip to content

Commit

Permalink
♻️ :: ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongho1209 committed Jan 7, 2024
1 parent 0e7f142 commit 2a3e406
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface QueryStatusSpi {
fun queryStatusByStudentIdAndStartPeriodAndEndPeriodAndToday(
studentId: UUID,
startPeriod: Int,
endPeriod: Int
endPeriod: Int,
): Status?

fun queryMovementStudentByStudentId(studentId: UUID): Status?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 2a3e406

Please sign in to comment.