Skip to content

Commit

Permalink
πŸ”€ :: (#203) λ‹΄λ‹Ή 반 쑰회 API μˆ˜μ • (#121)
Browse files Browse the repository at this point in the history
πŸ”€ :: (#203) λ‹΄λ‹Ή 반 쑰회 API μˆ˜μ • (#121)
  • Loading branch information
alsco39 authored Jul 12, 2023
1 parent bedea87 commit 5ac22f5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,13 @@ class TeacherUseCase(
override fun queryMyBuckGradeAndClassNum(): QueryMyBuckGradeAndClassNumResponse {
val userInfo = userSpi.queryUserInfoByUserId(userSpi.getCurrentUserId())

val userGrade = if (userInfo.grade == 0) userInfo.grade else 1
val userClassNum = if (userInfo.classNum == 0) userInfo.classNum else 1
var userGrade = 1
var userClassNum = 1

if (!(userInfo.grade == 0 && userInfo.classNum == 0)) {
userGrade = userInfo.grade
userClassNum = userInfo.classNum
}
return QueryMyBuckGradeAndClassNumResponse(userGrade, userClassNum)
}

Expand Down

0 comments on commit 5ac22f5

Please sign in to comment.