Commit 93b27673340c15336c7664b046de905136e8ec17
1 parent
b157ac5c
1.站点和站点路由数据结构变更
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/bsth/server_rs/base_info/station/buffer/StationRefreshThread.java
| @@ -27,7 +27,7 @@ public class StationRefreshThread extends Thread{ | @@ -27,7 +27,7 @@ public class StationRefreshThread extends Thread{ | ||
| 27 | 27 | ||
| 28 | try { | 28 | try { |
| 29 | //站点信息 | 29 | //站点信息 |
| 30 | - List<Station> stationList = jdbcTemplate.query("SELECT station_cod AS station_code,station_name,g_lonx AS lon,g_laty AS lat,versions FROM bsth_c_station where destroy=0 ", | 30 | + List<Station> stationList = jdbcTemplate.query("SELECT station_code,station_name,ST_X(center_point_wgs) AS lon,ST_Y(center_point_wgs) AS lat,versions FROM bsth_c_station where destroy=0", |
| 31 | BeanPropertyRowMapper.newInstance(Station.class)); | 31 | BeanPropertyRowMapper.newInstance(Station.class)); |
| 32 | 32 | ||
| 33 | if(stationList == null || stationList.size() == 0) | 33 | if(stationList == null || stationList.size() == 0) |