Commit 3af89ead05a9f0f1b51a76c2aaf2deb302abfad3
1 parent
359b1763
运管处时刻表调整
Showing
1 changed file
with
11 additions
and
0 deletions
src/main/java/com/bsth/repository/StationRouteRepository.java
| @@ -257,4 +257,15 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | @@ -257,4 +257,15 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | ||
| 257 | @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH) | 257 | @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH) |
| 258 | @Query("select s from StationRoute s where s.destroy=0 and s.lineCode=?1") | 258 | @Query("select s from StationRoute s where s.destroy=0 and s.lineCode=?1") |
| 259 | List<StationRoute> findByLineCode(String lineCode); | 259 | List<StationRoute> findByLineCode(String lineCode); |
| 260 | + | ||
| 261 | + @Query("SELECT " + | ||
| 262 | + "lineCode,directions,stationName,stationRouteCode " + | ||
| 263 | + "FROM " + | ||
| 264 | + "StationRoute s " + | ||
| 265 | + "WHERE " + | ||
| 266 | + "s.destroy = 0 " + | ||
| 267 | + "and s.lineCode in(select lineCode from Line where inUse = 1) " + | ||
| 268 | + "ORDER BY " + | ||
| 269 | + "lineCode,directions,stationRouteCode") | ||
| 270 | + List<Object[]> findAllLineWithYgc(); | ||
| 260 | } | 271 | } |