Commit e9d1dbc63cd6f07dd85cc49cc543167a73e07f8d
1 parent
ee9aa6a6
1.
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/bsth/repository/LsStationRouteRepository.java
| ... | ... | @@ -182,6 +182,6 @@ public interface LsStationRouteRepository extends BaseRepository<LsStationRoute, |
| 182 | 182 | * @param end |
| 183 | 183 | * @return |
| 184 | 184 | */ |
| 185 | - @Query(value = "SELECT * FROM bsth_c_ls_stationroute WHERE line = :#{#lineId} AND directions = :#{#direction} AND versions IN (SELECT versions FROM bsth_c_line_versions WHERE line = 12148 AND (:#{#begin} BETWEEN start_date AND end_date OR :#{#end} BETWEEN start_date AND end_date)) ORDER BY versions,station_route_code", nativeQuery = true) | |
| 185 | + @Query(value = "SELECT * FROM bsth_c_ls_stationroute WHERE line = :#{#lineId} AND directions = :#{#direction} AND versions IN (SELECT versions FROM bsth_c_line_versions WHERE line = :#{#lineId} AND (:#{#begin} BETWEEN start_date AND end_date OR :#{#end} BETWEEN start_date AND end_date)) ORDER BY versions,station_route_code", nativeQuery = true) | |
| 186 | 186 | List<LsStationRoute> findByLineDirectionDate(Integer lineId, Integer direction, Date begin, Date end); |
| 187 | 187 | } | ... | ... |