diff --git a/src/main/kotlin/com/swm_standard/phote/dto/ExamDtos.kt b/src/main/kotlin/com/swm_standard/phote/dto/ExamDtos.kt index 482131e..055cdf7 100644 --- a/src/main/kotlin/com/swm_standard/phote/dto/ExamDtos.kt +++ b/src/main/kotlin/com/swm_standard/phote/dto/ExamDtos.kt @@ -126,6 +126,7 @@ data class CreateSharedExamResponse( data class ReadAllSharedExamsResponse( val examId: UUID, + val workbookId: UUID, val creator: String, val title: String, val startTime: LocalDateTime, diff --git a/src/main/kotlin/com/swm_standard/phote/repository/questionrepository/QuestionCustomRepositoryImpl.kt b/src/main/kotlin/com/swm_standard/phote/repository/questionrepository/QuestionCustomRepositoryImpl.kt index 30413cf..5e19e3c 100644 --- a/src/main/kotlin/com/swm_standard/phote/repository/questionrepository/QuestionCustomRepositoryImpl.kt +++ b/src/main/kotlin/com/swm_standard/phote/repository/questionrepository/QuestionCustomRepositoryImpl.kt @@ -27,7 +27,6 @@ class QuestionCustomRepositoryImpl( .where(question.member.id.eq(memberId)) .leftJoin(question.tags, tag) .fetchJoin() - .distinct() // 태그 조건: tags로 들어온 태그들을 모두 포함하는 문제 검색 if (!tags.isNullOrEmpty()) { diff --git a/src/main/kotlin/com/swm_standard/phote/service/ExamService.kt b/src/main/kotlin/com/swm_standard/phote/service/ExamService.kt index bd99907..f2fba08 100644 --- a/src/main/kotlin/com/swm_standard/phote/service/ExamService.kt +++ b/src/main/kotlin/com/swm_standard/phote/service/ExamService.kt @@ -342,6 +342,7 @@ class ExamService( ).map { exam -> ReadAllSharedExamsResponse( examId = exam.id!!, + workbookId = exam.workbook.id, creator = exam.member.name, title = exam.title, startTime = exam.startTime, @@ -361,6 +362,7 @@ class ExamService( val sharedExam = examResult.exam as SharedExam ReadAllSharedExamsResponse( examId = examResult.exam.id!!, + workbookId = sharedExam.workbook.id, creator = sharedExam.member.name, title = sharedExam.title, startTime = sharedExam.startTime,