Commit a4796616b57d89a1f34e781117b1688249a37304

Authored by ljq
1 parent daf25afc

发车信息价格schid

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