Commit a281a3bd37a52115640da78d6899423181a06b7a
1 parent
589ee963
到离站历史站点查询中剔除无版本号的旧数据
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/bsth/repository/StationRouteRepository.java
| @@ -420,7 +420,7 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | @@ -420,7 +420,7 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | ||
| 420 | @Query("select r from StationRoute r where r.line.id=?1 and r.directions=?2 and r.destroy=0 order by r.stationRouteCode") | 420 | @Query("select r from StationRoute r where r.line.id=?1 and r.directions=?2 and r.destroy=0 order by r.stationRouteCode") |
| 421 | List<StationRoute> findByLine(Integer lineId, Integer dir); | 421 | List<StationRoute> findByLine(Integer lineId, Integer dir); |
| 422 | 422 | ||
| 423 | - @Query("select r from StationRoute r where r.lineCode=?1 and r.directions=?2 order by r.destroy, r.stationRouteCode") | 423 | + @Query("select r from StationRoute r where r.lineCode=?1 and r.directions=?2 and versions is not null order by r.destroy, r.stationRouteCode") |
| 424 | List<StationRoute> findAllByLine(String lineCode, int updown); | 424 | List<StationRoute> findAllByLine(String lineCode, int updown); |
| 425 | 425 | ||
| 426 | @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH) | 426 | @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH) |