fixed parameter type abstract -> long

This commit is contained in:
snoop 2017-08-24 15:29:24 +09:00
parent 27bb2798f0
commit d48ab6da51

View File

@ -46,8 +46,8 @@ public class SensorService {
return this.sensorDAO.findAllByTargetList(targetList); return this.sensorDAO.findAllByTargetList(targetList);
} }
public List<Sensor> readAllByInfra(Infra infra) { public List<Sensor> readAllByInfra(long infraId) {
Infra dbInfra = this.infraService.read(infra.getId()); Infra dbInfra = this.infraService.read(infraId);
if(dbInfra == null || dbInfra.getTarget() == null) return null; if(dbInfra == null || dbInfra.getTarget() == null) return null;