Commit 78b05be22c809e061de3f8ecfef102d8eccbc127
1 parent
7dabbcc2
车辆信息Repository添加查询所有车辆方法 findCars
Showing
1 changed file
with
3 additions
and
0 deletions
src/main/java/com/bsth/repository/CarsRepository.java
| @@ -12,4 +12,7 @@ public interface CarsRepository extends BaseRepository<Cars, Integer>{ | @@ -12,4 +12,7 @@ public interface CarsRepository extends BaseRepository<Cars, Integer>{ | ||
| 12 | 12 | ||
| 13 | @Query(value="select s from Cars s where s.id in(select e.cl.id from CarConfigInfo e where e.xl.id = ?1) ") | 13 | @Query(value="select s from Cars s where s.id in(select e.cl.id from CarConfigInfo e where e.xl.id = ?1) ") |
| 14 | List<Cars> findCarsByLineId(Integer lineId); | 14 | List<Cars> findCarsByLineId(Integer lineId); |
| 15 | + | ||
| 16 | + @Query(value="select s from Cars") | ||
| 17 | + List<Cars> findCars(); | ||
| 15 | } | 18 | } |