Skip to content

Commit

Permalink
fix: 일반전형으로 전환된 사람들의 점수가 최종합격자 엑셀에서 반올림되지 않음
Browse files Browse the repository at this point in the history
- 일반전형으로 전환된 지원자들의 성적 점수와 총 점수가 반올림되지 않아 변경했어요.
  • Loading branch information
jyj1289 committed Oct 29, 2024
1 parent 9a1a6c4 commit 8852322
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 8852322

Please sign in to comment.