From 33e1079824973a1b8f3980a68ff5380866de578a Mon Sep 17 00:00:00 2001 From: OJOJIN Date: Sun, 8 Oct 2023 05:56:30 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20response=20=EC=86=8C=EC=88=98?= =?UTF-8?q?=EC=A0=90=20=EB=B2=84=EB=A6=BC=20(#64)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../history/dto/response/HistoryMonthDetailResponseDto.java | 4 ++-- .../history/dto/response/HistoryQuarterDetailResponseDto.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/kusitms/server/domain/tumbler/history/dto/response/HistoryMonthDetailResponseDto.java b/src/main/java/kusitms/server/domain/tumbler/history/dto/response/HistoryMonthDetailResponseDto.java index da9283c..8dd717f 100644 --- a/src/main/java/kusitms/server/domain/tumbler/history/dto/response/HistoryMonthDetailResponseDto.java +++ b/src/main/java/kusitms/server/domain/tumbler/history/dto/response/HistoryMonthDetailResponseDto.java @@ -14,7 +14,7 @@ public class HistoryMonthDetailResponseDto { private Integer tumblerGrade; - private Double tumblerPercent; + private Integer tumblerPercent; private Integer tumblerCount; @@ -23,7 +23,7 @@ public static HistoryMonthDetailResponseDto of(TumblerHistory tumblerHistory) { .tumblerName(tumblerHistory.getTumblerName()) .deptName(tumblerHistory.getDepartment().getDeptName()) .tumblerGrade(tumblerHistory.getTumblerGrade()) - .tumblerPercent(tumblerHistory.getTumblerPercent()) + .tumblerPercent((int) Math.floor(tumblerHistory.getTumblerPercent())) .tumblerCount(tumblerHistory.getTumblerCount()) .build(); } diff --git a/src/main/java/kusitms/server/domain/tumbler/history/dto/response/HistoryQuarterDetailResponseDto.java b/src/main/java/kusitms/server/domain/tumbler/history/dto/response/HistoryQuarterDetailResponseDto.java index 1cadb43..fb5ec46 100644 --- a/src/main/java/kusitms/server/domain/tumbler/history/dto/response/HistoryQuarterDetailResponseDto.java +++ b/src/main/java/kusitms/server/domain/tumbler/history/dto/response/HistoryQuarterDetailResponseDto.java @@ -18,7 +18,7 @@ public class HistoryQuarterDetailResponseDto { private Double tumblerPercent; - private Double tumblerAverage; + private Integer tumblerAverage; public static HistoryQuarterDetailResponseDto of(List tumblerHistories) { Double average = (double) 0; @@ -31,7 +31,7 @@ public static HistoryQuarterDetailResponseDto of(List tumblerHis .deptName(tumblerHistories.get(0).getDepartment().getDeptName()) .tumblerGrade(tumblerHistories.get(0).getTumblerGrade()) .tumblerPercent(tumblerHistories.get(0).getTumblerPercent()) - .tumblerAverage(average) + .tumblerAverage((int) Math.floor(average)) .build(); } }