Commit a3ca6c6b0090ba97ae1c2fd68a1e5ace4d69ace4
1 parent
168352fc
运管处路单站序错误BUG修改
Showing
1 changed file
with
4 additions
and
3 deletions
src/main/java/com/bsth/repository/StationRouteRepository.java
| ... | ... | @@ -259,8 +259,9 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int |
| 259 | 259 | @Query("select s from StationRoute s where s.destroy=0 and s.lineCode=?1") |
| 260 | 260 | List<StationRoute> findByLineCode(String lineCode); |
| 261 | 261 | |
| 262 | - @Query("SELECT " + | |
| 263 | - "lineCode,directions,stationName,stationCode " + | |
| 262 | + @Query("SELECT new map(" + | |
| 263 | + "lineCode as lineCode,directions as directions,stationName as stationName,stationCode as stationCode," + | |
| 264 | + "line.linePlayType as linePlayType,s.stationMark as stationMark) " + | |
| 264 | 265 | "FROM " + |
| 265 | 266 | "StationRoute s " + |
| 266 | 267 | "WHERE " + |
| ... | ... | @@ -268,7 +269,7 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int |
| 268 | 269 | "and s.lineCode in(select lineCode from Line where inUse = 1) " + |
| 269 | 270 | "ORDER BY " + |
| 270 | 271 | "lineCode,directions,stationRouteCode") |
| 271 | - List<Object[]> findAllLineWithYgc(); | |
| 272 | + List<Map<String, String>> findAllLineWithYgc(); | |
| 272 | 273 | |
| 273 | 274 | @Modifying |
| 274 | 275 | @Query(value="update bsth_c_stationroute set directions = case directions when 1 then 0 when 0 then 1 end where line_code = ?1 ", nativeQuery=true) | ... | ... |