Skip to content

Commit

Permalink
refactor: (#716) 사용하지 않는 메서드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 committed Aug 19, 2024
1 parent 0e2676c commit 2f2ae54
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ interface GetStudentService {

fun getStudentsBySchoolId(schoolId: UUID): List<Student>

fun getAllStudentWithMinusPoint(): List<Pair<UUID, Int>>

fun getAllStudentsByIdsIn(studentIds: List<UUID>): List<Student>

fun getGcnUpdatedStudent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import java.util.function.Function
class GetStudentServiceImpl(
private val securityPort: SecurityPort,
private val queryStudentPort: QueryStudentPort,
private val queryPointHistoryPort: QueryPointHistoryPort,
private val queryOutingApplicationPort: QueryOutingApplicationPort,
) : GetStudentService {

Expand Down Expand Up @@ -69,15 +68,6 @@ class GetStudentServiceImpl(
override fun getStudentsBySchoolId(schoolId: UUID) =
queryStudentPort.queryStudentsBySchoolId(schoolId)

override fun getAllStudentWithMinusPoint(): List<Pair<UUID, Int>> =
queryStudentPort.queryAllStudentsByName("").map { student ->
val minusTotalPoint = queryPointHistoryPort.queryBonusAndMinusTotalPointByStudentGcnAndName(
gcn = student.gcn,
studentName = student.name
).second
Pair(student.id, minusTotalPoint)
}

override fun getAllStudentsByIdsIn(studentIds: List<UUID>) =
queryStudentPort.queryAllStudentsByIdsIn(studentIds)
.also { students ->
Expand Down

0 comments on commit 2f2ae54

Please sign in to comment.