fixed dao query
This commit is contained in:
parent
b08e3e3b2a
commit
1f053db7eb
|
@ -1,7 +1,6 @@
|
||||||
package com.loafle.overflow.module.sensor.dao;
|
package com.loafle.overflow.module.sensor.dao;
|
||||||
|
|
||||||
|
|
||||||
import com.loafle.overflow.module.probe.model.Probe;
|
|
||||||
import com.loafle.overflow.module.sensor.model.Sensor;
|
import com.loafle.overflow.module.sensor.model.Sensor;
|
||||||
import com.loafle.overflow.module.target.model.Target;
|
import com.loafle.overflow.module.target.model.Target;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
@ -21,4 +20,5 @@ public interface SensorDAO extends JpaRepository<Sensor, Long> {
|
||||||
@Query("SELECT s from Sensor s WHERE s.target in (:targetList)")
|
@Query("SELECT s from Sensor s WHERE s.target in (:targetList)")
|
||||||
List<Sensor> findAllByTarget(@Param("targetList") List<Target> targetList);
|
List<Sensor> findAllByTarget(@Param("targetList") List<Target> targetList);
|
||||||
// List<Sensor> findAllByTargetList(List<Target> targets);
|
// List<Sensor> findAllByTargetList(List<Target> targets);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user