From 885232263c8de90188b01b64abee1e97fd6b59bd Mon Sep 17 00:00:00 2001 From: jyj1289 Date: Tue, 29 Oct 2024 11:02:39 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=BC=EB=B0=98=EC=A0=84=ED=98=95?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=A0=84=ED=99=98=EB=90=9C=20=EC=82=AC?= =?UTF-8?q?=EB=9E=8C=EB=93=A4=EC=9D=98=20=EC=A0=90=EC=88=98=EA=B0=80=20?= =?UTF-8?q?=EC=B5=9C=EC=A2=85=ED=95=A9=EA=B2=A9=EC=9E=90=20=EC=97=91?= =?UTF-8?q?=EC=85=80=EC=97=90=EC=84=9C=20=EB=B0=98=EC=98=AC=EB=A6=BC?= =?UTF-8?q?=EB=90=98=EC=A7=80=20=EC=95=8A=EC=9D=8C=20-=20=EC=9D=BC?= =?UTF-8?q?=EB=B0=98=EC=A0=84=ED=98=95=EC=9C=BC=EB=A1=9C=20=EC=A0=84?= =?UTF-8?q?=ED=99=98=EB=90=9C=20=EC=A7=80=EC=9B=90=EC=9E=90=EB=93=A4?= =?UTF-8?q?=EC=9D=98=20=EC=84=B1=EC=A0=81=20=EC=A0=90=EC=88=98=EC=99=80=20?= =?UTF-8?q?=EC=B4=9D=20=EC=A0=90=EC=88=98=EA=B0=80=20=EB=B0=98=EC=98=AC?= =?UTF-8?q?=EB=A6=BC=EB=90=98=EC=A7=80=20=EC=95=8A=EC=95=84=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=ED=96=88=EC=96=B4=EC=9A=94.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maru/application/form/ExportFinalPassedFormUseCase.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/bamdoliro/maru/application/form/ExportFinalPassedFormUseCase.java b/src/main/java/com/bamdoliro/maru/application/form/ExportFinalPassedFormUseCase.java index 71c70b65..8a897115 100644 --- a/src/main/java/com/bamdoliro/maru/application/form/ExportFinalPassedFormUseCase.java +++ b/src/main/java/com/bamdoliro/maru/application/form/ExportFinalPassedFormUseCase.java @@ -6,6 +6,7 @@ import com.bamdoliro.maru.infrastructure.xlsx.XlsxService; import com.bamdoliro.maru.infrastructure.xlsx.constant.XlsxConstant; import com.bamdoliro.maru.shared.annotation.UseCase; +import com.bamdoliro.maru.shared.util.MathUtil; import lombok.RequiredArgsConstructor; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellStyle; @@ -108,7 +109,7 @@ public Resource execute() throws IOException { parentRelationCell.setCellStyle(defaultCellStyle); Cell subjectGradeScoreCell = row.createCell(17); - subjectGradeScoreCell.setCellValue(form.getScore().getSubjectGradeScore()); + subjectGradeScoreCell.setCellValue(MathUtil.roundTo(form.getScore().getSubjectGradeScore(), 3)); subjectGradeScoreCell.setCellStyle(rightCellStyle); Cell attendanceScoreCell = row.createCell(18); @@ -140,7 +141,7 @@ public Resource execute() throws IOException { } Cell totalScoreCell = row.createCell(24); - totalScoreCell.setCellValue(form.getScore().getTotalScore()); + totalScoreCell.setCellValue(MathUtil.roundTo(form.getScore().getTotalScore(),3)); totalScoreCell.setCellStyle(rightCellStyle); }