Commit bd5368ad3a0c2f54132ae4878297f6d561524010
1 parent
4395479b
1
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/com/bsth/data/car_out_info/CarOutInfoHandler.java
| @@ -117,8 +117,8 @@ public class CarOutInfoHandler { | @@ -117,8 +117,8 @@ public class CarOutInfoHandler { | ||
| 117 | //删除 | 117 | //删除 |
| 118 | jdbcTemplate.update("delete from bsth_t_clfcxxb"); | 118 | jdbcTemplate.update("delete from bsth_t_clfcxxb"); |
| 119 | //重新写入 | 119 | //重新写入 |
| 120 | - jdbcTemplate.batchUpdate("insert into bsth_t_clfcxxb(rq, line_code, line_name, lp_name, lp_sn, dfsj, nbbm, cph, bc_type, end_station_name, updown, jGh, jName, remarks, sn)" + | ||
| 121 | - " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", new BatchPreparedStatementSetter() { | 120 | + jdbcTemplate.batchUpdate("insert into bsth_t_clfcxxb(rq, line_code, line_name, lp_name, lp_sn, dfsj, nbbm, cph, bc_type, end_station_name, updown, jGh, jName, remarks, sn,sch)" + |
| 121 | + " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?)", new BatchPreparedStatementSetter() { | ||
| 122 | @Override | 122 | @Override |
| 123 | public void setValues(PreparedStatement ps, int i) throws SQLException { | 123 | public void setValues(PreparedStatement ps, int i) throws SQLException { |
| 124 | ScheduleRealInfo sch = pstList.get(i); | 124 | ScheduleRealInfo sch = pstList.get(i); |
| @@ -137,6 +137,7 @@ public class CarOutInfoHandler { | @@ -137,6 +137,7 @@ public class CarOutInfoHandler { | ||
| 137 | ps.setString(13, sch.getjName()); | 137 | ps.setString(13, sch.getjName()); |
| 138 | ps.setString(14, sch.getRemarks()); | 138 | ps.setString(14, sch.getRemarks()); |
| 139 | ps.setInt(15, sch.getFcpSn()); | 139 | ps.setInt(15, sch.getFcpSn()); |
| 140 | + ps.setLong(16, sch.getId()); | ||
| 140 | } | 141 | } |
| 141 | 142 | ||
| 142 | @Override | 143 | @Override |