261022_02_ENH: Class에서 record로 변경가능한 Dto들 record로 변경

This commit is contained in:
2026-10-22 10:01:39 +09:00
parent c4ea839df3
commit 486966fe73
61 changed files with 324 additions and 444 deletions

View File

@@ -158,7 +158,7 @@ public class StatisticsService {
private List<QuestionDto> loadQuestions(ProjectRefDto project, RequestUserContext ctx) {
boolean includeProfileQuestions =
project.getProjectType() == ProjectType.KIWI
project.projectType() == ProjectType.KIWI
&& Integer.valueOf(KartConstant.PROFILE_QUESTION_ROLE).equals(ctx.getUserRole());
return questionService.organize(questionRepository.list(project, includeProfileQuestions));
}
@@ -200,7 +200,7 @@ public class StatisticsService {
List<StatisticsRequestDto> requests,
StatisticsRequestDto sharedRequest,
List<QuestionDto> questions) {
if (project.getProjectType() != ProjectType.KIWI) {
if (project.projectType() != ProjectType.KIWI) {
return false;
}
return requests.stream().anyMatch(request -> isProfileId(request.getIndex()))