Commit c33e25aae16ca8571fa353a66f564bbaa9a0fcf0
1 parent
53a78062
update...
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/bsth/data/schedule/e_state_check/ScheduleStationCodeChecker.java
| ... | ... | @@ -120,13 +120,13 @@ public class ScheduleStationCodeChecker { |
| 120 | 120 | |
| 121 | 121 | |
| 122 | 122 | private Map<String, SCodeInfo> allRealCodeInfo() { |
| 123 | - String sql = "select line_code,directions as up_down,station_code as real_station_code,station_name from bsth_c_stationroute where line in (select id from bsth_c_line where destroy=0)"; | |
| 123 | + String sql = "select line_code,directions as up_down,station_code as real_station_code,station_name from bsth_c_stationroute where line in (select id from bsth_c_line where destroy=0) and destroy=0"; | |
| 124 | 124 | List<SCodeInfo> realList = jdbcTemplate.query(sql, BeanPropertyRowMapper.newInstance(SCodeInfo.class)); |
| 125 | 125 | Map<String, SCodeInfo> realMap = new HashMap<>(); |
| 126 | 126 | |
| 127 | 127 | for (SCodeInfo sci : realList) { |
| 128 | 128 | realMap.put(sci.getLineCode() + "_" + sci.getUpDown() + "_" + sci.getStationName(), sci); |
| 129 | - realMap.put(sci.getLineCode() + "_" + sci.getUpDown() + "_" + sci.getStationCode(), sci); | |
| 129 | + realMap.put(sci.getLineCode() + "_" + sci.getUpDown() + "_" + sci.getRealStationCode(), sci); | |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | return realMap; | ... | ... |