Commit 5996ac8319477bbef24090566028c72787527db5
1 parent
1ffde26a
update...
Showing
2 changed files
with
14 additions
and
1 deletions
src/main/java/com/bsth/server_rs/base_info/line/Line.java
| @@ -99,6 +99,11 @@ public class Line implements Serializable { | @@ -99,6 +99,11 @@ public class Line implements Serializable { | ||
| 99 | /** 越界 */ | 99 | /** 越界 */ |
| 100 | private Integer overflights; | 100 | private Integer overflights; |
| 101 | 101 | ||
| 102 | + /** | ||
| 103 | + * 上海市线路编码 | ||
| 104 | + */ | ||
| 105 | + private String shanghaiLinecode; | ||
| 106 | + | ||
| 102 | public String getName() { | 107 | public String getName() { |
| 103 | return name; | 108 | return name; |
| 104 | } | 109 | } |
| @@ -307,4 +312,12 @@ public class Line implements Serializable { | @@ -307,4 +312,12 @@ public class Line implements Serializable { | ||
| 307 | public void setOverflights(Integer overflights) { | 312 | public void setOverflights(Integer overflights) { |
| 308 | this.overflights = overflights; | 313 | this.overflights = overflights; |
| 309 | } | 314 | } |
| 315 | + | ||
| 316 | + public String getShanghaiLinecode() { | ||
| 317 | + return shanghaiLinecode; | ||
| 318 | + } | ||
| 319 | + | ||
| 320 | + public void setShanghaiLinecode(String shanghaiLinecode) { | ||
| 321 | + this.shanghaiLinecode = shanghaiLinecode; | ||
| 322 | + } | ||
| 310 | } | 323 | } |
src/main/java/com/bsth/server_rs/base_info/line/buffer/LineRefreshThread.java
| @@ -28,7 +28,7 @@ public class LineRefreshThread extends Thread{ | @@ -28,7 +28,7 @@ public class LineRefreshThread extends Thread{ | ||
| 28 | public void run() { | 28 | public void run() { |
| 29 | 29 | ||
| 30 | try { | 30 | try { |
| 31 | - List<Line> list = jdbcTemplate.query("SELECT t1. NAME,t1.line_code,t1.start_station_name,t1.end_station_name,t1.start_station_first_time,t1.start_station_end_time,t1.end_station_first_time,t1.end_station_end_time,t1.company,t1.branche_company,t1.nature,t1.`level`,t1.destroy,t1.supper_line,t1.eq_linecode,t1.create_date,t2.total_mileage,t2.early_interval_lg,t2.late_interval_lg,t2.interval_lg,t2.speed_limit,t2.lag_station,t2.skip,t2.speeding,t2.crossed_line,t2.overflights FROM bsth_c_line t1 LEFT JOIN bsth_c_line_information t2 ON t1.id = t2.line where t1.destroy=0", | 31 | + List<Line> list = jdbcTemplate.query("SELECT t1. NAME,t1.line_code,t1.start_station_name,t1.end_station_name,t1.start_station_first_time,t1.start_station_end_time,t1.end_station_first_time,t1.end_station_end_time,t1.company,t1.branche_company,t1.nature,t1.`level`,t1.destroy,t1.supper_line,t1.eq_linecode,t1.create_date,t2.total_mileage,t2.early_interval_lg,t2.late_interval_lg,t2.interval_lg,t2.speed_limit,t2.lag_station,t2.skip,t2.speeding,t2.crossed_line,t2.overflights,t1.shanghai_linecode FROM bsth_c_line t1 LEFT JOIN bsth_c_line_information t2 ON t1.id = t2.line where t1.destroy=0", |
| 32 | BeanPropertyRowMapper.newInstance(Line.class)); | 32 | BeanPropertyRowMapper.newInstance(Line.class)); |
| 33 | 33 | ||
| 34 | Map<String, Line> map = new HashMap<>(); | 34 | Map<String, Line> map = new HashMap<>(); |