Skip to content

[Feat] 이해도 체크 응답에 출석 인원 집계 반영#125

Merged
issuejong merged 5 commits into
developfrom
feat/#122
May 28, 2026
Merged

[Feat] 이해도 체크 응답에 출석 인원 집계 반영#125
issuejong merged 5 commits into
developfrom
feat/#122

Conversation

@issuejong

Copy link
Copy Markdown
Collaborator

#️⃣연관된 이슈

#122

📝작업 내용

이해도 체크 응답 DTO를 확장하고, 세션별 출석 인원을 기준으로 이해도 응답 현황을 계산하도록 구현했습니다.

  • 이해도 체크 응답 DTO 확장

    • respondedCount 추가
    • attendanceCount 추가
    • understoodCount, notUnderstoodCount는 O/X 뱃지 숫자로 유지
    • 프론트에서 "13/29" 형태의 응답 현황을 바로 렌더링할 수 있도록 구조 변경
  • 세션 기준 출석 인원 계산 로직 추가

    • 세션 날짜와 오전/오후 회차를 기준으로 실제 출석 완료 인원 계산
    • AM 세션은 출석 1회차
    • PM 세션은 출석 2회차로 매핑
    • AttendanceRepository에 출석 완료 인원 조회 쿼리 추가
  • 질문방/이해도 조회 API에 출석 인원 연결

    • 질문방 조회 시 현재 이해도 체크의 출석 인원 함께 반환
    • 이해도 응답 제출 직후에도 최신 출석 인원과 응답 수를 함께 반환
    • 프론트에서 O/X 클릭 후 화면을 즉시 갱신할 수 있도록 응답 형식 통일
  • 이해도 체크 생성 응답 형식 정리

    • 생성 직후 respondedCount, understoodCount, notUnderstoodCount는 0으로 반환
    • 생성 API는 질문방 조회 맥락이 아니므로 attendanceCountnull로 반환

@issuejong issuejong requested a review from Copilot May 28, 2026 09:51
@issuejong issuejong linked an issue May 28, 2026 that may be closed by this pull request
3 tasks

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends understanding-check responses so the frontend can render response participation counts using session attendance as the denominator.

Changes:

  • Adds respondedCount and attendanceCount to understanding-check DTOs.
  • Counts attended users by session date and AM/PM attendance order.
  • Wires attendance counts into question-room lookup and response submission results.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
QuestionService.java Calculates and returns response and attendance counts for understanding checks.
QuestionResDTO.java Extends response records with participation-count fields.
AttendanceService.java Adds session-to-attendance-order mapping and attendance counting logic.
AttendanceRepository.java Adds query for counting completed attendance by date and order.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@issuejong issuejong merged commit 545cb88 into develop May 28, 2026
2 checks passed
@issuejong issuejong deleted the feat/#122 branch June 7, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 이해도 체크 응답 인원수 제공 기능 구현

2 participants