Commit a3ca6c6b0090ba97ae1c2fd68a1e5ace4d69ace4

Authored by zlz
1 parent 168352fc

运管处路单站序错误BUG修改

src/main/java/com/bsth/repository/StationRouteRepository.java
@@ -259,8 +259,9 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int @@ -259,8 +259,9 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int
259 @Query("select s from StationRoute s where s.destroy=0 and s.lineCode=?1") 259 @Query("select s from StationRoute s where s.destroy=0 and s.lineCode=?1")
260 List<StationRoute> findByLineCode(String lineCode); 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 "FROM " + 265 "FROM " +
265 "StationRoute s " + 266 "StationRoute s " +
266 "WHERE " + 267 "WHERE " +
@@ -268,7 +269,7 @@ public interface StationRouteRepository extends BaseRepository&lt;StationRoute, Int @@ -268,7 +269,7 @@ public interface StationRouteRepository extends BaseRepository&lt;StationRoute, Int
268 "and s.lineCode in(select lineCode from Line where inUse = 1) " + 269 "and s.lineCode in(select lineCode from Line where inUse = 1) " +
269 "ORDER BY " + 270 "ORDER BY " +
270 "lineCode,directions,stationRouteCode") 271 "lineCode,directions,stationRouteCode")
271 - List<Object[]> findAllLineWithYgc(); 272 + List<Map<String, String>> findAllLineWithYgc();
272 273
273 @Modifying 274 @Modifying
274 @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) 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)