Commit f6afc2195bcc02c14dd258804e177d6213a46b44

Authored by zlz
1 parent bbc0f7f7

增加获取所有线路站点路由的方法(包含in_use=0的线路)

src/main/java/com/bsth/repository/StationRouteRepository.java
... ... @@ -273,6 +273,17 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int
273 273 "and s.lineCode in(select lineCode from Line where inUse = 1) " +
274 274 "ORDER BY " +
275 275 "lineCode,directions,stationRouteCode")
  276 + List<Map<String, String>> findLineWithYgcAndInuse();
  277 +
  278 + @Query("SELECT new map(" +
  279 + "lineCode as lineCode,directions as directions,stationName as stationName,stationCode as stationCode," +
  280 + "line.linePlayType as linePlayType,s.stationMark as stationMark) " +
  281 + "FROM " +
  282 + "StationRoute s " +
  283 + "WHERE " +
  284 + "s.destroy = 0 " +
  285 + "ORDER BY " +
  286 + "lineCode,directions,stationRouteCode")
276 287 List<Map<String, String>> findAllLineWithYgc();
277 288  
278 289 @Modifying
... ...