From d48ab6da51f4922b3fe786cdcbc5c4ec145e7ef5 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 24 Aug 2017 15:29:24 +0900 Subject: [PATCH] fixed parameter type abstract -> long --- .../loafle/overflow/module/sensor/service/SensorService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java b/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java index 126c584..92b8a53 100644 --- a/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java +++ b/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java @@ -46,8 +46,8 @@ public class SensorService { return this.sensorDAO.findAllByTargetList(targetList); } - public List readAllByInfra(Infra infra) { - Infra dbInfra = this.infraService.read(infra.getId()); + public List readAllByInfra(long infraId) { + Infra dbInfra = this.infraService.read(infraId); if(dbInfra == null || dbInfra.getTarget() == null) return null;