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 ac56b1b..4bf97f3 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 @@ -84,8 +84,8 @@ public class SensorService { return this.sensorDAO.findAllByTarget(dbInfra.getTarget(), PageUtil.getPageRequest(pageParams)); } - public List readAllByTarget(Target target) { - return this.sensorDAO.findAllByTarget(target); + public Page readAllByTarget(Target target, PageParams pageParams) { + return this.sensorDAO.findAllByTarget(target, PageUtil.getPageRequest(pageParams)); } public Sensor read(String id) {