From 62ec49b26f773357a80dba2f2fbf8deeb745b63b Mon Sep 17 00:00:00 2001 From: chahyunsoo Date: Sun, 10 Mar 2024 15:59:00 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20:=20=EB=B9=84=EC=A0=95=EC=83=81=20?= =?UTF-8?q?=EB=B6=80=ED=92=88=20=EB=B3=84=20=EC=A0=90=EC=88=98=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 조건문 수정 --- .../backend/service/orderpart/OrderPartServiceImpl.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/Weflo/backend/service/orderpart/OrderPartServiceImpl.java b/src/main/java/Weflo/backend/service/orderpart/OrderPartServiceImpl.java index 25d6bd3..62324d9 100644 --- a/src/main/java/Weflo/backend/service/orderpart/OrderPartServiceImpl.java +++ b/src/main/java/Weflo/backend/service/orderpart/OrderPartServiceImpl.java @@ -239,18 +239,17 @@ public List getAbnormalParts(Drone drone) { categoryToAbnormalPartsMap.put("Esc", new ArrayList<>()); for (Part part : drone.getParts()) { - if (part.getMotorScore() != null && part.getMotorScore() <= 70) { + if (part.getMotorScore() != null && part.getBladeScore() <= 70) { categoryToAbnormalPartsMap.get("Blade") - .add(PartScoreDto.of(part.getName(), part.getMotorScore())); -// .add(PartScoreDto.of(part.getName(), part.getMotorScore(), null, null)) + .add(PartScoreDto.of(part.getName(), part.getBladeScore())); } - if (part.getBladeScore() != null && part.getBladeScore() <= 70) { + if (part.getBladeScore() != null && part.getMotorScore() <= 70) { categoryToAbnormalPartsMap.get("Motor") .add(PartScoreDto.of(part.getName(), part.getMotorScore())); } if (part.getEscScore() != null && part.getEscScore() <= 70) { categoryToAbnormalPartsMap.get("Esc") - .add(PartScoreDto.of(part.getName(), part.getMotorScore())); + .add(PartScoreDto.of(part.getName(), part.getEscScore())); } }