From 120a3b5860eaeb546fccdcfd2112320badf66052 Mon Sep 17 00:00:00 2001 From: Jaewon Lee <58386334+jaewonLeeKOR@users.noreply.github.com> Date: Fri, 27 Sep 2024 00:35:44 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20#186=20=EC=9D=BC=EA=B4=84=20=EC=82=BD?= =?UTF-8?q?=EC=9E=85=20=EC=A7=88=EB=AC=B8=20number=EC=88=9C=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/question/service/AdminQuestionServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/server/capple/domain/question/service/AdminQuestionServiceImpl.java b/src/main/java/com/server/capple/domain/question/service/AdminQuestionServiceImpl.java index fed906e9..6d7f4a50 100644 --- a/src/main/java/com/server/capple/domain/question/service/AdminQuestionServiceImpl.java +++ b/src/main/java/com/server/capple/domain/question/service/AdminQuestionServiceImpl.java @@ -17,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional; import java.io.StringReader; +import java.util.Comparator; import java.util.List; @Slf4j @@ -72,6 +73,7 @@ public Long uploadQuestionByCsv(String text) { .withType(QuestionInsertDto.class) .build() .parse(); + questionInsertDtoList.sort(Comparator.comparing(QuestionInsertDto::getQuestionId)); List questions = questionInsertDtoList.stream() .map(questionMapper::toQuestionInsertDto) .toList();