Commit 60c2aff54cc894a93a69d0af98933430debfbae9

Authored by ljq
1 parent ba3e036f

站点修复

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