Commit bba6c6f534c9f37fffa3e6ee1a0f0a985a9536d3

Authored by 娄高锋
1 parent addf73ad

线路时刻分析

src/main/java/com/bsth/service/impl/BusIntervalServiceImpl.java
@@ -145,8 +145,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -145,8 +145,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
145 schedule.setZdsjActual(zdsjA/60 + ":" + zdsjA%60); 145 schedule.setZdsjActual(zdsjA/60 + ":" + zdsjA%60);
146 schedule.setZdsjActualTime(zdsjA); 146 schedule.setZdsjActualTime(zdsjA);
147 } 147 }
148 - schedule.setFcsj(fcsj/60 + ":" + fcsj%60);  
149 - schedule.setZdsj(zdsj/60 + ":" + zdsj%60); 148 + schedule.setFcsj((fcsj/60<10?"0"+fcsj/60:fcsj/60) + ":" + (fcsj%60<10?"0"+fcsj%60:fcsj%60));
  149 + schedule.setZdsj((zdsj/60<10?"0"+zdsj/60:zdsj/60) + ":" + (zdsj%60<10?"0"+zdsj%60:zdsj%60));
150 schedule.setFcsjT(fcsj); 150 schedule.setFcsjT(fcsj);
151 schedule.setZdsjT(zdsj); 151 schedule.setZdsjT(zdsj);
152 return schedule; 152 return schedule;
@@ -237,7 +237,6 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -237,7 +237,6 @@ public class BusIntervalServiceImpl implements BusIntervalService {
237 237
238 String sql = "select start_station_name, end_station_name from bsth_c_line where line_code = '"+line+"'"; 238 String sql = "select start_station_name, end_station_name from bsth_c_line where line_code = '"+line+"'";
239 239
240 - System.out.println(sql);  
241 list = jdbcTemplate.query(sql, 240 list = jdbcTemplate.query(sql,
242 new RowMapper<Map<String, Object>>(){ 241 new RowMapper<Map<String, Object>>(){
243 @Override 242 @Override
src/main/resources/static/pages/forms/statement/lineTimeAnaly.html
@@ -397,7 +397,7 @@ @@ -397,7 +397,7 @@
397 } 397 }
398 }); 398 });
399 $.each(list, function(i, g){ 399 $.each(list, function(i, g){
400 - if(g.line == params[3] && g.lp == params[4]){ 400 + if(g.line == params[3] && g.lp == params[4] &&g.station == params[5]){
401 var tbodyHtml = template('list_workList',{list:g}); 401 var tbodyHtml = template('list_workList',{list:g});
402 $('#works tbody').html(tbodyHtml); 402 $('#works tbody').html(tbodyHtml);
403 $("#works_hidden").removeClass("hidden"); 403 $("#works_hidden").removeClass("hidden");