Commit 60c2aff54cc894a93a69d0af98933430debfbae9

Authored by ljq
1 parent ba3e036f

站点修复

src/main/java/com/bsth/entity/StationRouteSt.java
@@ -101,10 +101,10 @@ public class StationRouteSt { @@ -101,10 +101,10 @@ public class StationRouteSt {
101 @Column(name = "update_date", columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") 101 @Column(name = "update_date", columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
102 private Date updateDate; 102 private Date updateDate;
103 103
104 - /*// 站点信息 104 + // 站点信息
105 @ManyToOne(fetch = FetchType.LAZY) 105 @ManyToOne(fetch = FetchType.LAZY)
106 private Station station; 106 private Station station;
107 - */ 107 +
108 // 线路信息 108 // 线路信息
109 @ManyToOne 109 @ManyToOne
110 private LineSt line; 110 private LineSt line;
@@ -268,7 +268,13 @@ public class StationRouteSt { @@ -268,7 +268,13 @@ public class StationRouteSt {
268 public void setUpdateDate(Date updateDate) { 268 public void setUpdateDate(Date updateDate) {
269 this.updateDate = updateDate; 269 this.updateDate = updateDate;
270 } 270 }
  271 + public Station getStation() {
  272 + return station;
  273 + }
271 274
  275 + public void setStation(Station station) {
  276 + this.station = station;
  277 + }
272 278
273 public LineSt getLine() { 279 public LineSt getLine() {
274 return line; 280 return line;
src/main/java/com/bsth/repository/LsStationRouteRepository.java
@@ -262,7 +262,7 @@ public interface LsStationRouteRepository extends BaseRepository<LsStationRoute, @@ -262,7 +262,7 @@ public interface LsStationRouteRepository extends BaseRepository<LsStationRoute,
262 " s.create_by AS stationRouteCreateBy," + 262 " s.create_by AS stationRouteCreateBy," +
263 " s.create_date AS stationRouteCreateDate," + 263 " s.create_date AS stationRouteCreateDate," +
264 " s.update_by AS stationRouteUpdateBy," + 264 " s.update_by AS stationRouteUpdateBy," +
265 - " s.update_date AS stationRouteUpdateDate FROM bsth_c_ls_stationroute s WHERE s.id = ?1 ) a " + 265 + " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.id = ?1 ) a " +
266 " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true) 266 " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true)
267 List<Object[]> findStationRouteInfo(Integer id); 267 List<Object[]> findStationRouteInfo(Integer id);
268 268