Commit 6af4597f52ed42b01144172051ca2e0e7a1fdcc4
1 parent
609c1137
1230
Showing
13 changed files
with
572 additions
and
157 deletions
src/main/java/com/bsth/controller/report/ReportController.java
| ... | ... | @@ -64,6 +64,11 @@ public class ReportController { |
| 64 | 64 | return service.tbodyTime3(line, ttinfo); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + @RequestMapping(value = "/tbodyTime4", method = RequestMethod.GET) | |
| 68 | + public List<Map<String, Object>> tbodyTime4(@RequestParam String line,@RequestParam String ttinfo) { | |
| 69 | + return service.tbodyTime4(line, ttinfo); | |
| 70 | + } | |
| 71 | + | |
| 67 | 72 | @RequestMapping(value = "/tbodyTime5", method = RequestMethod.GET) |
| 68 | 73 | public List<Map<String, Object>> tbodyTime5(@RequestParam String line,@RequestParam String ttinfo) { |
| 69 | 74 | return service.tbodyTime5(line, ttinfo); | ... | ... |
src/main/java/com/bsth/service/excep/impl/OfflineServiceImpl.java
| ... | ... | @@ -46,23 +46,33 @@ public class OfflineServiceImpl implements OfflineService { |
| 46 | 46 | Object line=map.get("line"); |
| 47 | 47 | Object nbbm=map.get("nbbm"); |
| 48 | 48 | Object updown=map.get("updown"); |
| 49 | - | |
| 49 | + Object date=map.get("date"); | |
| 50 | 50 | |
| 51 | 51 | if(line!=null){ |
| 52 | - if(line.toString()!="") | |
| 53 | - sql +=" and line="+line; | |
| 52 | + sql +=" and line like'%"+line.toString()+"%'"; | |
| 54 | 53 | } |
| 55 | 54 | |
| 56 | 55 | if(nbbm!=null){ |
| 57 | - if(nbbm.toString()!="") | |
| 58 | - sql +=" and vehicle like '%"+nbbm+"%'"; | |
| 56 | + sql +=" and vehicle like '%"+nbbm.toString()+"%'"; | |
| 59 | 57 | } |
| 60 | 58 | |
| 61 | 59 | if(updown!=null){ |
| 62 | - if(updown.toString() !="") | |
| 63 | - sql +="and up_down ="+updown; | |
| 60 | + sql +="and up_down like '%"+updown.toString()+"%'"; | |
| 61 | + } | |
| 62 | + if(date!=null){ | |
| 63 | + if (date.toString().length()>0) { | |
| 64 | + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:MM:SS"); | |
| 65 | + try { | |
| 66 | + Long t1=sdf.parse(date.toString()+" 00:00:00").getTime(); | |
| 67 | + Long t2=sdf.parse(date.toString()+" 23:59:59").getTime(); | |
| 68 | + sql += " and timestamp >="+t1 +" and timestamp <="+t2; | |
| 69 | + } catch (ParseException e) { | |
| 70 | + // TODO Auto-generated catch block | |
| 71 | + e.printStackTrace(); | |
| 72 | + } | |
| 73 | + } | |
| 74 | + | |
| 64 | 75 | } |
| 65 | - | |
| 66 | 76 | sql +=" order by id limit ?,?"; |
| 67 | 77 | |
| 68 | 78 | try { |
| ... | ... | @@ -118,19 +128,32 @@ public class OfflineServiceImpl implements OfflineService { |
| 118 | 128 | Object nbbm=map.get("nbbm"); |
| 119 | 129 | Object updown=map.get("updown"); |
| 120 | 130 | |
| 131 | + Object date=map.get("date"); | |
| 132 | + | |
| 121 | 133 | if(line!=null){ |
| 122 | - if(line.toString()!="") | |
| 123 | - sql +=" and line="+line; | |
| 134 | + sql +=" and line like'%"+line.toString()+"%'"; | |
| 124 | 135 | } |
| 125 | 136 | |
| 126 | 137 | if(nbbm!=null){ |
| 127 | - if(nbbm.toString()!="") | |
| 128 | - sql +=" and vehicle like '%"+nbbm+"%'"; | |
| 138 | + sql +=" and vehicle like '%"+nbbm.toString()+"%'"; | |
| 129 | 139 | } |
| 130 | 140 | |
| 131 | 141 | if(updown!=null){ |
| 132 | - if(updown.toString() !="") | |
| 133 | - sql +="and up_down ="+updown; | |
| 142 | + sql +="and up_down like '%"+updown.toString()+"%'"; | |
| 143 | + } | |
| 144 | + if(date!=null){ | |
| 145 | + if (date.toString().length()>0) { | |
| 146 | + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:MM:SS"); | |
| 147 | + try { | |
| 148 | + Long t1=sdf.parse(date.toString()+" 00:00:00").getTime(); | |
| 149 | + Long t2=sdf.parse(date.toString()+" 23:59:59").getTime(); | |
| 150 | + sql += " and timestamp >="+t1 +" and timestamp <="+t2; | |
| 151 | + } catch (ParseException e) { | |
| 152 | + // TODO Auto-generated catch block | |
| 153 | + e.printStackTrace(); | |
| 154 | + } | |
| 155 | + } | |
| 156 | + | |
| 134 | 157 | } |
| 135 | 158 | |
| 136 | 159 | Connection conn = null; | ... | ... |
src/main/java/com/bsth/service/excep/impl/OutboundServiceImpl.java
| ... | ... | @@ -36,23 +36,33 @@ public class OutboundServiceImpl implements OutboundService{ |
| 36 | 36 | Object line=map.get("line"); |
| 37 | 37 | Object nbbm=map.get("nbbm"); |
| 38 | 38 | Object updown=map.get("updown"); |
| 39 | + Object date=map.get("date"); | |
| 39 | 40 | |
| 40 | - | |
| 41 | 41 | if(line!=null){ |
| 42 | - if(line.toString()!="") | |
| 43 | - sql +=" and line="+line; | |
| 42 | + sql +=" and line like'%"+line.toString()+"%'"; | |
| 44 | 43 | } |
| 45 | 44 | |
| 46 | 45 | if(nbbm!=null){ |
| 47 | - if(nbbm.toString()!="") | |
| 48 | - sql +=" and vehicle like '%"+nbbm+"%'"; | |
| 46 | + sql +=" and vehicle like '%"+nbbm.toString()+"%'"; | |
| 49 | 47 | } |
| 50 | 48 | |
| 51 | 49 | if(updown!=null){ |
| 52 | - if(updown.toString() !="") | |
| 53 | - sql +="and up_down ="+updown; | |
| 50 | + sql +="and up_down like '%"+updown.toString()+"%'"; | |
| 51 | + } | |
| 52 | + if(date!=null){ | |
| 53 | + if (date.toString().length()>0) { | |
| 54 | + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:MM:SS"); | |
| 55 | + try { | |
| 56 | + Long t1=sdf.parse(date.toString()+" 00:00:00").getTime(); | |
| 57 | + Long t2=sdf.parse(date.toString()+" 23:59:59").getTime(); | |
| 58 | + sql += " and timestamp >="+t1 +" and timestamp <="+t2; | |
| 59 | + } catch (ParseException e) { | |
| 60 | + // TODO Auto-generated catch block | |
| 61 | + e.printStackTrace(); | |
| 62 | + } | |
| 63 | + } | |
| 64 | + | |
| 54 | 65 | } |
| 55 | - | |
| 56 | 66 | sql +=" order by id limit ?,?"; |
| 57 | 67 | |
| 58 | 68 | |
| ... | ... | @@ -102,20 +112,32 @@ public class OutboundServiceImpl implements OutboundService{ |
| 102 | 112 | Object line=map.get("line"); |
| 103 | 113 | Object nbbm=map.get("nbbm"); |
| 104 | 114 | Object updown=map.get("updown"); |
| 105 | - | |
| 115 | + Object date=map.get("date"); | |
| 106 | 116 | if(line!=null){ |
| 107 | - if(line.toString()!="") | |
| 108 | - sql +=" and line="+line; | |
| 117 | + sql +=" and line like '%"+line.toString()+"%'"; | |
| 118 | + | |
| 109 | 119 | } |
| 110 | 120 | |
| 111 | 121 | if(nbbm!=null){ |
| 112 | - if(nbbm.toString()!="") | |
| 113 | - sql +=" and vehicle like '%"+nbbm+"%'"; | |
| 122 | + sql +=" and vehicle like '%"+nbbm.toString()+"%'"; | |
| 114 | 123 | } |
| 115 | 124 | |
| 116 | 125 | if(updown!=null){ |
| 117 | - if(updown.toString() !="") | |
| 118 | - sql +="and up_down ="+updown; | |
| 126 | + sql +=" and up_down like '%"+updown.toString()+"%'"; | |
| 127 | + } | |
| 128 | + if(date!=null){ | |
| 129 | + if (date.toString().length()>0) { | |
| 130 | + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |
| 131 | + try { | |
| 132 | + Long t1=sdf.parse(date.toString()+" 00:00:00").getTime(); | |
| 133 | + Long t2=sdf.parse(date.toString()+" 23:59:59").getTime(); | |
| 134 | + sql += " and timestamp >="+t1 +" and timestamp <="+t2; | |
| 135 | + } catch (ParseException e) { | |
| 136 | + // TODO Auto-generated catch block | |
| 137 | + e.printStackTrace(); | |
| 138 | + } | |
| 139 | + } | |
| 140 | + | |
| 119 | 141 | } |
| 120 | 142 | Connection conn = null; |
| 121 | 143 | PreparedStatement ps = null; |
| ... | ... | @@ -214,7 +236,7 @@ public class OutboundServiceImpl implements OutboundService{ |
| 214 | 236 | times=sdf.format(new Date()); |
| 215 | 237 | } |
| 216 | 238 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| 217 | - String times1=times+" 00:00:01"; | |
| 239 | + String times1=times+" 00:00:00"; | |
| 218 | 240 | String times2=times+" 23:59:59"; |
| 219 | 241 | |
| 220 | 242 | Connection conn = null; | ... | ... |
src/main/java/com/bsth/service/excep/impl/SpeedingServiceImpl.java
| ... | ... | @@ -38,22 +38,34 @@ public class SpeedingServiceImpl implements SpeedingService { |
| 38 | 38 | Object line=map.get("line"); |
| 39 | 39 | Object nbbm=map.get("nbbm"); |
| 40 | 40 | Object updown=map.get("updown"); |
| 41 | - | |
| 41 | + Object date=map.get("date"); | |
| 42 | 42 | |
| 43 | 43 | if(line!=null){ |
| 44 | - if(line.toString()!="") | |
| 45 | - sql +=" and line="+line; | |
| 44 | + sql +=" and line like'%"+line.toString()+"%'"; | |
| 46 | 45 | } |
| 47 | 46 | |
| 48 | 47 | if(nbbm!=null){ |
| 49 | - if(nbbm.toString()!="") | |
| 50 | - sql +=" and vehicle like '%"+nbbm+"%'"; | |
| 48 | + sql +=" and vehicle like '%"+nbbm.toString()+"%'"; | |
| 51 | 49 | } |
| 52 | 50 | |
| 53 | 51 | if(updown!=null){ |
| 54 | - if(updown.toString() !="") | |
| 55 | - sql +="and up_down ="+updown; | |
| 52 | + sql +="and up_down like '%"+updown.toString()+"%'"; | |
| 53 | + } | |
| 54 | + if(date!=null){ | |
| 55 | + if (date.toString().length()>0) { | |
| 56 | + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:MM:SS"); | |
| 57 | + try { | |
| 58 | + Long t1=sdf.parse(date.toString()+" 00:00:00").getTime(); | |
| 59 | + Long t2=sdf.parse(date.toString()+" 23:59:59").getTime(); | |
| 60 | + sql += " and timestamp >="+t1 +" and timestamp <="+t2; | |
| 61 | + } catch (ParseException e) { | |
| 62 | + // TODO Auto-generated catch block | |
| 63 | + e.printStackTrace(); | |
| 64 | + } | |
| 65 | + } | |
| 66 | + | |
| 56 | 67 | } |
| 68 | + | |
| 57 | 69 | |
| 58 | 70 | sql +=" order by id limit ?,?"; |
| 59 | 71 | |
| ... | ... | @@ -103,19 +115,32 @@ public class SpeedingServiceImpl implements SpeedingService { |
| 103 | 115 | Object nbbm=map.get("nbbm"); |
| 104 | 116 | Object updown=map.get("updown"); |
| 105 | 117 | |
| 118 | + Object date=map.get("date"); | |
| 119 | + | |
| 106 | 120 | if(line!=null){ |
| 107 | - if(line.toString()!="") | |
| 108 | - sql +=" and line="+line; | |
| 121 | + sql +=" and line like'%"+line.toString()+"%'"; | |
| 109 | 122 | } |
| 110 | 123 | |
| 111 | 124 | if(nbbm!=null){ |
| 112 | - if(nbbm.toString()!="") | |
| 113 | - sql +=" and vehicle like '%"+nbbm+"%'"; | |
| 125 | + sql +=" and vehicle like '%"+nbbm.toString()+"%'"; | |
| 114 | 126 | } |
| 115 | 127 | |
| 116 | 128 | if(updown!=null){ |
| 117 | - if(updown.toString() !="") | |
| 118 | - sql +="and up_down ="+updown; | |
| 129 | + sql +="and up_down like '%"+updown.toString()+"%'"; | |
| 130 | + } | |
| 131 | + if(date!=null){ | |
| 132 | + if (date.toString().length()>0) { | |
| 133 | + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:MM:SS"); | |
| 134 | + try { | |
| 135 | + Long t1=sdf.parse(date.toString()+" 00:00:00").getTime(); | |
| 136 | + Long t2=sdf.parse(date.toString()+" 23:59:59").getTime(); | |
| 137 | + sql += " and timestamp >="+t1 +" and timestamp <="+t2; | |
| 138 | + } catch (ParseException e) { | |
| 139 | + // TODO Auto-generated catch block | |
| 140 | + e.printStackTrace(); | |
| 141 | + } | |
| 142 | + } | |
| 143 | + | |
| 119 | 144 | } |
| 120 | 145 | Connection conn = null; |
| 121 | 146 | PreparedStatement ps = null; | ... | ... |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| ... | ... | @@ -1208,7 +1208,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1208 | 1208 | map.put("ljbc", ljbc); |
| 1209 | 1209 | map.put("sjbc", jhbc-cjbc+ljbc); |
| 1210 | 1210 | map.put("jcclc", jcclc); |
| 1211 | - map.put("zkslc", ksgl+jcclc); | |
| 1211 | + map.put("zkslc", format.format(ksgl+jcclc)); | |
| 1212 | 1212 | return map; |
| 1213 | 1213 | } |
| 1214 | 1214 | ... | ... |
src/main/java/com/bsth/service/report/ReportService.java
| ... | ... | @@ -24,6 +24,8 @@ public interface ReportService { |
| 24 | 24 | Map<String, Object> tbodyTime2(String line ,String ttinfo); |
| 25 | 25 | |
| 26 | 26 | List<Map<String, Object>> tbodyTime3(String line ,String ttinfo); |
| 27 | + | |
| 28 | + List<Map<String, Object>> tbodyTime4(String line ,String ttinfo); | |
| 27 | 29 | List<Map<String, Object>> tbodyTime5(String line ,String ttinfo); |
| 28 | 30 | |
| 29 | 31 | List<Map<String, Object>> getTtinfo(Map<String, Object> map); | ... | ... |
src/main/java/com/bsth/service/report/impl/ReportServiceImpl.java
| ... | ... | @@ -451,21 +451,36 @@ public class ReportServiceImpl implements ReportService{ |
| 451 | 451 | System.out.println(609360%60); |
| 452 | 452 | } |
| 453 | 453 | @Override |
| 454 | - public List<Map<String, Object>> tbodyTime3(String line, String date) { | |
| 454 | + public List<Map<String, Object>> tbodyTime3(String line, String ttinfo) { | |
| 455 | 455 | // TODO Auto-generated method stub |
| 456 | 456 | List<Map<String, Object>> list=new ArrayList<Map<String,Object>>(); |
| 457 | - String sqlZd=" select qdz_name, count(cl_zbh) as cls , 'zqc' as lx from bsth_c_s_sp_info where " | |
| 458 | - + " DATE_FORMAT(schedule_date,'%Y-%m-%d') ='"+date+"' and xl_bm='"+line+"' and bc_type='normal' " | |
| 459 | - + " and fcsj>'06:31' and fcsj<'08:00' group by qdz_name union " | |
| 460 | - + " select qdz_name, count(cl_zbh) as cls , 'wqc' as lx from bsth_c_s_sp_info " | |
| 461 | - + " where DATE_FORMAT(schedule_date,'%Y-%m-%d') ='"+date+"' and xl_bm='"+line+"' " | |
| 462 | - + " and bc_type='normal' and fcsj>'16:01' and fcsj<'18:00' group by qdz_name union " | |
| 463 | - + " select qdz_name, count(cl_zbh) as cls , 'zqj' as lx from bsth_c_s_sp_info " | |
| 464 | - + " where DATE_FORMAT(schedule_date,'%Y-%m-%d') ='"+date+"' and xl_bm='"+line+"' " | |
| 465 | - + " and bc_type='region' and fcsj>'06:31' and fcsj<'08:00' group by qdz_name union " | |
| 466 | - + " select qdz_name, count(cl_zbh) as cls , 'wqj' as lx from bsth_c_s_sp_info " | |
| 467 | - + " where DATE_FORMAT(schedule_date,'%Y-%m-%d') ='"+date+"' and xl_bm='"+line+"' " | |
| 468 | - + " and bc_type='region' and fcsj>'16:01' and fcsj<'18:00'group by qdz_name"; | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + String sqlZd=" select t.*,x.station_name as qdz_name from (" | |
| 461 | + + " select qdz,count(lp) as cls,lx from ( select qdz,lp, 'zqc' as lx " | |
| 462 | + + " from bsth_c_s_ttinfo_detail where " | |
| 463 | + + " bc_type='normal' and ttinfo ='"+ttinfo+"' " | |
| 464 | + + " and fcsj>'06:31' and fcsj<'08:00' group by qdz,lp) t1" | |
| 465 | + + " group by qdz " | |
| 466 | + + " union " | |
| 467 | + + " select qdz,count(lp) as cls,lx from ( select qdz,lp, 'wqc' as lx " | |
| 468 | + + " from bsth_c_s_ttinfo_detail where " | |
| 469 | + + " bc_type='normal' and ttinfo ='"+ttinfo+"' " | |
| 470 | + + " and fcsj>'16:01' and fcsj<'18:00' group by qdz,lp) t2" | |
| 471 | + + " group by qdz " | |
| 472 | + + " union " | |
| 473 | + + " select qdz,count(lp) as cls,lx from ( select qdz,lp, 'zqj' as lx " | |
| 474 | + + " from bsth_c_s_ttinfo_detail where " | |
| 475 | + + " bc_type='region' and ttinfo ='"+ttinfo+"' " | |
| 476 | + + " and fcsj>'06:31' and fcsj<'08:00' group by qdz,lp) t3" | |
| 477 | + + " group by qdz " | |
| 478 | + + " union " | |
| 479 | + + " select qdz,count(lp) as cls,lx from ( select qdz,lp, 'wqj' as lx " | |
| 480 | + + " from bsth_c_s_ttinfo_detail where " | |
| 481 | + + " bc_type='region' and ttinfo ='"+ttinfo+"' " | |
| 482 | + + " and fcsj>'16:01' and fcsj<'18:00' group by qdz,lp) t4" | |
| 483 | + + " group by qdz ) t left join bsth_c_station x on t.qdz=x.id"; | |
| 469 | 484 | |
| 470 | 485 | List<Map<String, Object>> lists= jdbcTemplate.query(sqlZd, |
| 471 | 486 | new RowMapper<Map<String, Object>>(){ |
| ... | ... | @@ -526,55 +541,238 @@ public class ReportServiceImpl implements ReportService{ |
| 526 | 541 | } |
| 527 | 542 | return list; |
| 528 | 543 | } |
| 544 | + | |
| 529 | 545 | @Override |
| 530 | - public List<Map<String, Object>> tbodyTime5(String line, String date) { | |
| 546 | + public List<Map<String, Object>> tbodyTime4(String line, String ttinfo) { | |
| 547 | + List<Map<String, Object>> list =new ArrayList<>(); | |
| 531 | 548 | // TODO Auto-generated method stub |
| 532 | - String sql="select min(fcsj) as fcsj,'lx0' as lx from bsth_c_s_sp_info where " | |
| 533 | - + " DATE_FORMAT(schedule_date,'%Y-%m-%d') ='"+date+"' and xl_bm='"+line+"'" | |
| 534 | - + " and bc_type='out' and xl_dir=0 union " | |
| 535 | - + " select min(fcsj) as fcsj,'lx1' as lx from bsth_c_s_sp_info where " | |
| 536 | - + " DATE_FORMAT(schedule_date,'%Y-%m-%d') ='"+date+"' and xl_bm='"+line+"'" | |
| 537 | - + " and bc_type='out' and xl_dir=1"; | |
| 538 | - List<Map<String, Object>> lists= jdbcTemplate.query(sql, | |
| 539 | - new RowMapper<Map<String, Object>>(){ | |
| 549 | + //最早营运时间 区分夜宵线 | |
| 550 | + String sqlMinYysj="select start_opt from bsth_c_line_config where line = '"+BasicData.lineId2CodeMap.inverse().get(line) +"'"; | |
| 551 | + String minfcsj=jdbcTemplate.queryForObject(sqlMinYysj, String.class); | |
| 552 | + | |
| 553 | + //查询全程 | |
| 554 | + String sqlqc="select t.*,x.station_name as qdz_name from ( " | |
| 555 | + + "(SELECT fcsj,qdz,2 as xh,xl_dir FROM bsth_c_s_ttinfo_detail " | |
| 556 | + + " where ttinfo ='"+ttinfo+"' and bc_type='normal' and fcsj <='"+minfcsj+"' ) " | |
| 557 | + + " union " | |
| 558 | + + " (SELECT fcsj,qdz,1 as xh,xl_dir FROM bsth_c_s_ttinfo_detail " | |
| 559 | + + " where ttinfo ='"+ttinfo+"' and bc_type='normal' and fcsj > '"+minfcsj+"') " | |
| 560 | + + "order by xl_dir,xh,fcsj ) t left join bsth_c_station x on t.qdz=x.id"; | |
| 561 | + List<Map<String, String>> qclist= jdbcTemplate.query(sqlqc, | |
| 562 | + new RowMapper<Map<String, String>>(){ | |
| 540 | 563 | @Override |
| 541 | - public Map<String, Object> mapRow(ResultSet rs, int rowNum) throws SQLException { | |
| 542 | - Map<String, Object> m=new HashMap<String,Object>(); | |
| 543 | - m.put("lx", rs.getString("lx")); | |
| 564 | + public Map<String, String> mapRow(ResultSet rs, int rowNum) throws SQLException { | |
| 565 | + Map<String, String> m=new HashMap<String,String>(); | |
| 566 | + m.put("qdz_name", rs.getString("qdz_name")); | |
| 544 | 567 | m.put("fcsj", rs.getString("fcsj")); |
| 568 | + m.put("xl", rs.getString("xl_dir")); | |
| 545 | 569 | return m; |
| 546 | 570 | } |
| 571 | + | |
| 547 | 572 | }); |
| 573 | + | |
| 574 | + Map<String, Object> qcMap=new HashMap<String,Object>(); | |
| 575 | + int num=0; | |
| 576 | + String sxfcsj=""; | |
| 577 | + String xxfcsj=""; | |
| 578 | + String sxzd=""; | |
| 579 | + String xxzd=""; | |
| 580 | + for (int i = 0; i < qclist.size(); i++) { | |
| 581 | + Map<String, String> map=qclist.get(i); | |
| 582 | + if(map.get("xl").equals("0")){ | |
| 583 | + if(sxzd.equals("")){ | |
| 584 | + sxzd=map.get("qdz_name").toString(); | |
| 585 | + qcMap.put("sxzm", sxzd); | |
| 586 | + sxfcsj +=map.get("fcsj").toString()+"-"; | |
| 587 | + } | |
| 588 | + if(!(qclist.get(i+1).get("xl").equals("0"))){ | |
| 589 | + sxfcsj +=map.get("fcsj").toString(); | |
| 590 | + qcMap.put("sxsj",sxfcsj); | |
| 591 | + qcMap.put("sxbc", i+1); | |
| 592 | + num=i+1; | |
| 593 | + } | |
| 594 | + } | |
| 595 | + if(map.get("xl").equals("1")){ | |
| 596 | + if(xxzd.equals("")){ | |
| 597 | + xxzd=map.get("qdz_name").toString(); | |
| 598 | + xxfcsj+=map.get("fcsj").toString()+"-"; | |
| 599 | + qcMap.put("xxzm", xxzd); | |
| 600 | + } | |
| 601 | + } | |
| 602 | + } | |
| 603 | + xxfcsj +=qclist.get(qclist.size()-1).get("fcsj").toString(); | |
| 604 | + qcMap.put("xxsj", xxfcsj); | |
| 605 | + qcMap.put("xxbc", qclist.size()-num); | |
| 606 | + list.add(qcMap); | |
| 548 | 607 | |
| 549 | - String sqlList="select * from bsth_c_s_sp_info where " | |
| 550 | - + "DATE_FORMAT(schedule_date,'%Y-%m-%d') ='"+date+"' and xl_bm='"+line+"'" | |
| 551 | - + " and bc_type='normal' order by fcsj"; | |
| 552 | - List<SchedulePlanInfo> list= jdbcTemplate.query(sqlList, | |
| 553 | - new RowMapper<SchedulePlanInfo>(){ | |
| 608 | + | |
| 609 | + //查询区间 | |
| 610 | + String sqlqj="select t.*,x.station_name as qdz_name from ( " | |
| 611 | + + "(SELECT fcsj,qdz,'1' as gf,xl_dir FROM bsth_c_s_ttinfo_detail " | |
| 612 | + + "where ttinfo ='"+ttinfo+"' and bc_type='region' and fcsj >='06:31'" | |
| 613 | + + "and fcsj <'08:30')" | |
| 614 | + + " union ( SELECT fcsj,qdz,'2' as gf,xl_dir FROM bsth_c_s_ttinfo_detail " | |
| 615 | + + "where ttinfo ='"+ttinfo+"' and bc_type='region' " | |
| 616 | + + "and fcsj > '16:01' and fcsj < '18:00') order by xl_dir,gf,fcsj ) t " | |
| 617 | + + "left join bsth_c_station x on t.qdz=x.id"; | |
| 618 | + | |
| 619 | + List<Map<String, String>> qjlist= jdbcTemplate.query(sqlqj, | |
| 620 | + new RowMapper<Map<String, String>>(){ | |
| 554 | 621 | @Override |
| 555 | - public SchedulePlanInfo mapRow(ResultSet rs, int rowNum) throws SQLException { | |
| 556 | - SchedulePlanInfo m=new SchedulePlanInfo(); | |
| 557 | - m.setBcsj(rs.getInt("bcsj")); | |
| 558 | - m.setXlDir(rs.getString("xl_dir")); | |
| 559 | - m.setFcsj(rs.getString("fcsj")); | |
| 622 | + public Map<String, String> mapRow(ResultSet rs, int rowNum) throws SQLException { | |
| 623 | + Map<String, String> m=new HashMap<String,String>(); | |
| 624 | + m.put("qdz_name", rs.getString("qdz_name")); | |
| 625 | + m.put("fcsj", rs.getString("fcsj")); | |
| 626 | + m.put("xl", rs.getString("xl_dir")); | |
| 627 | + m.put("gf", rs.getString("gf")); | |
| 560 | 628 | return m; |
| 561 | 629 | } |
| 562 | 630 | }); |
| 563 | - //上下行最早发车时间 (用于与夜班线 跨零点的班次进行比较) | |
| 564 | - String lx0=""; | |
| 565 | - String lx1=""; | |
| 566 | - for (int x = 0; x < lists.size(); x++) { | |
| 567 | - if(lists.get(x).get("lx").equals("lx0")){ | |
| 568 | - lx0=lists.get(x).get("fcsj")==null?"0:0":lists.get(x).get("fcsj").toString(); | |
| 631 | + | |
| 632 | + Map<String, Object> qjzMap=new HashMap<String,Object>(); | |
| 633 | + Map<String, Object> qjwMap=new HashMap<String,Object>(); | |
| 634 | + int numqj=0; | |
| 635 | + String sxfcsjqj=""; | |
| 636 | + String xxfcsjqj=""; | |
| 637 | + String sxzdqj=""; | |
| 638 | + String xxzdqj=""; | |
| 639 | + for(int i=0;i<qjlist.size();i++){ | |
| 640 | + Map<String, String> map=qjlist.get(i); | |
| 641 | + if(map.get("xl").toString().equals("0")){ | |
| 642 | + if(map.get("gf").toString().equals("1")){ | |
| 643 | + if(sxzdqj.equals("")){ | |
| 644 | + sxzdqj =map.get("qdz_name").toString(); | |
| 645 | + qjzMap.put("sxzm", sxzdqj); | |
| 646 | + sxfcsjqj +=map.get("fcsj").toString()+"-"; | |
| 647 | + } | |
| 648 | + if(i<qjlist.size()-1){ | |
| 649 | + if(!(qjlist.get(i+1).get("gf").equals("1"))){ | |
| 650 | + sxfcsjqj +=map.get("fcsj").toString(); | |
| 651 | + qjzMap.put("sxsj",sxfcsjqj); | |
| 652 | + qjzMap.put("sxbc", i+1); | |
| 653 | + numqj=i+1; | |
| 654 | + sxzdqj =""; | |
| 655 | + sxfcsjqj=""; | |
| 656 | + } | |
| 657 | + }else{ | |
| 658 | + qjzMap.put("sxsj",sxfcsjqj+"-"+map.get("fcsj").toString()); | |
| 659 | + qjzMap.put("sxbc", i+1); | |
| 660 | + numqj=i+1; | |
| 661 | + sxzdqj =""; | |
| 662 | + sxfcsjqj=""; | |
| 663 | + } | |
| 664 | + } | |
| 665 | + if(map.get("gf").toString().equals("2")){ | |
| 666 | + if(sxzdqj.equals("")){ | |
| 667 | + sxzdqj =map.get("qdz_name").toString(); | |
| 668 | + qjwMap.put("sxzm", sxzdqj); | |
| 669 | + sxfcsjqj +=map.get("fcsj").toString()+"-"; | |
| 670 | + } | |
| 671 | + if(i<qjlist.size()-1){ | |
| 672 | + if(!(qjlist.get(i+1).get("xl").equals("0"))){ | |
| 673 | + sxfcsjqj +=map.get("fcsj").toString(); | |
| 674 | + qjwMap.put("sxsj",sxfcsjqj); | |
| 675 | + qjwMap.put("sxbc", i+1-numqj); | |
| 676 | + numqj=i+1; | |
| 677 | + } | |
| 678 | + }else{ | |
| 679 | + qjwMap.put("sxsj",sxfcsjqj+"-"+map.get("fcsj").toString()); | |
| 680 | + qjwMap.put("sxbc", i+1-numqj); | |
| 681 | + numqj=i+1; | |
| 682 | + } | |
| 683 | + } | |
| 684 | + | |
| 569 | 685 | }else{ |
| 570 | - lx1=lists.get(x).get("fcsj")==null?"0:0":lists.get(x).get("fcsj").toString(); | |
| 686 | + if(map.get("gf").toString().equals("1")){ | |
| 687 | + if(xxzdqj.equals("")){ | |
| 688 | + xxzdqj =map.get("qdz_name").toString(); | |
| 689 | + qjzMap.put("xxzm", xxzdqj); | |
| 690 | + xxfcsjqj +=map.get("fcsj").toString()+"-"; | |
| 691 | + } | |
| 692 | + if(i<qjlist.size()-1){ | |
| 693 | + if(!(qjlist.get(i+1).get("gf").equals("1"))){ | |
| 694 | + xxfcsjqj +=map.get("fcsj").toString(); | |
| 695 | + qjzMap.put("xxsj",xxfcsjqj); | |
| 696 | + qjzMap.put("xxbc", i+1-numqj); | |
| 697 | + numqj=i+1; | |
| 698 | + xxzdqj =""; | |
| 699 | + xxfcsjqj=""; | |
| 700 | + } | |
| 701 | + }else{ | |
| 702 | + qjzMap.put("xxsj",xxfcsjqj+"-"+map.get("fcsj").toString()); | |
| 703 | + qjzMap.put("xxbc", i+1-numqj); | |
| 704 | + numqj=i+1; | |
| 705 | + xxzdqj =""; | |
| 706 | + xxfcsjqj=""; | |
| 707 | + } | |
| 708 | + } | |
| 709 | + if(map.get("gf").toString().equals("2")){ | |
| 710 | + if(xxzdqj.equals("")){ | |
| 711 | + xxzdqj =map.get("qdz_name").toString(); | |
| 712 | + qjwMap.put("xxzm", xxzdqj); | |
| 713 | + xxfcsjqj +=map.get("fcsj").toString()+"-"; | |
| 714 | + } | |
| 715 | + if(i<qjlist.size()){ | |
| 716 | + if(i==qjlist.size()-1){ | |
| 717 | + xxfcsjqj +=map.get("fcsj").toString(); | |
| 718 | + qjwMap.put("xxsj",xxfcsjqj); | |
| 719 | + qjwMap.put("xxbc", i+1-numqj); | |
| 720 | + numqj=i+1; | |
| 721 | + } | |
| 722 | + }else{ | |
| 723 | + qjwMap.put("xxsj",xxfcsjqj+"-"+xxfcsjqj); | |
| 724 | + qjwMap.put("xxbc", i+1-numqj); | |
| 725 | + numqj=i+1; | |
| 726 | + } | |
| 727 | + } | |
| 728 | + | |
| 729 | + | |
| 571 | 730 | } |
| 572 | 731 | } |
| 573 | 732 | |
| 574 | - String[] lx0sj = lx0.split(":"); | |
| 575 | - int sxFc=Integer.parseInt(lx0sj[0])*60+Integer.parseInt(lx0sj[1]); | |
| 576 | - String[] lx1sj = lx1.split(":"); | |
| 577 | - int xxFc=Integer.parseInt(lx1sj[0])*60+Integer.parseInt(lx1sj[1]); | |
| 733 | + if(!qjzMap.isEmpty()){ | |
| 734 | + list.add(qjzMap); | |
| 735 | + } | |
| 736 | + if(!qjwMap.isEmpty()){ | |
| 737 | + list.add(qjwMap); | |
| 738 | + | |
| 739 | + } | |
| 740 | + return list; | |
| 741 | + } | |
| 742 | + @Override | |
| 743 | + public List<Map<String, Object>> tbodyTime5(String line, String ttinfo) { | |
| 744 | + // TODO Auto-generated method stub | |
| 745 | + //最早营运时间 区分夜宵线 | |
| 746 | + String sqlMinYysj="select start_opt from bsth_c_line_config where line = '"+BasicData.lineId2CodeMap.inverse().get(line) +"'"; | |
| 747 | + String minfcsj=jdbcTemplate.queryForObject(sqlMinYysj, String.class); | |
| 748 | + String[] minSjs = minfcsj.split(":"); | |
| 749 | + int minSj=Integer.parseInt(minSjs[0])*60+Integer.parseInt(minSjs[1]); | |
| 750 | + //查询时间里程 | |
| 751 | + String sqlPc=" (SELECT jhlc,fcsj,bcsj,bc_type,lp,xl_dir,2 as xh FROM " | |
| 752 | + + " bsth_c_s_ttinfo_detail where ttinfo ='"+ttinfo+"' and " | |
| 753 | + + " fcsj <='"+minfcsj+"' and bc_type = 'normal') " | |
| 754 | + + " union " | |
| 755 | + + " (SELECT jhlc,fcsj,bcsj,bc_type,lp,xl_dir,1 as xh FROM " | |
| 756 | + + " bsth_c_s_ttinfo_detail where ttinfo ='"+ttinfo+"' and " | |
| 757 | + + " fcsj >'"+minfcsj+"' and bc_type ='normal') " | |
| 758 | + + " order by xl_dir, xh,fcsj"; | |
| 759 | + | |
| 760 | + Map<String, Object> map=new HashMap<String,Object>(); | |
| 761 | + List<Map<String, Object>> list= jdbcTemplate.query(sqlPc, | |
| 762 | + new RowMapper<Map<String, Object>>(){ | |
| 763 | + @Override | |
| 764 | + public Map<String, Object> mapRow(ResultSet rs, int rowNum) throws SQLException { | |
| 765 | + Map<String, Object> m=new HashMap<String,Object>(); | |
| 766 | + m.put("fcsj", rs.getString("fcsj")); | |
| 767 | + m.put("yygl", rs.getString("jhlc")==null?"0":rs.getString("jhlc")); | |
| 768 | + m.put("bcsj", rs.getString("bcsj")); | |
| 769 | + m.put("bcType", rs.getString("bc_type")); | |
| 770 | + m.put("lp", rs.getString("lp")); | |
| 771 | + m.put("dir", rs.getString("xl_dir")); | |
| 772 | + return m; | |
| 773 | + } | |
| 774 | + }); | |
| 775 | + | |
| 578 | 776 | //班次 |
| 579 | 777 | int sj_0 = 6*60+31,sj_1 = 8*60+30,sj_2 = 16*60+1,sj_3 = 18*60; |
| 580 | 778 | |
| ... | ... | @@ -587,17 +785,17 @@ public class ReportServiceImpl implements ReportService{ |
| 587 | 785 | //车距 (发车时间的间距) i--MIN a--MAX |
| 588 | 786 | int iC=999,aC=-1,iZg=999,aZg=-1,iZw=999,aZw=-1,iWg=999,aWg=-1,iJcZ=999,aJcZ=-1,iJcW=999,aJcW=-1; |
| 589 | 787 | int iC1=999,aC1=-1,iZg1=999,aZg1=-1,iZw1=999,aZw1=-1,iWg1=999,aWg1=-1,iJc1Z=999,aJc1Z=-1,iJc1W=999,aJc1W=-1; |
| 590 | -// List<ScheduleRealInfo> list = scheduleRealInfoRepository.scheduleByDateAndLine(line, date); | |
| 788 | + | |
| 591 | 789 | for(int i=0;i<list.size();i++){ |
| 592 | - SchedulePlanInfo t=list.get(i); | |
| 593 | - String xlDir=t.getXlDir(); | |
| 594 | - int bcsj=t.getBcsj(); | |
| 595 | - String fcsj=t.getFcsj(); | |
| 790 | + Map<String, Object> ttMap=list.get(i); | |
| 791 | + String xlDir=ttMap.get("dir").toString(); | |
| 792 | + int bcsj=Integer.parseInt(ttMap.get("bcsj").toString()); | |
| 793 | + String fcsj=ttMap.get("fcsj").toString(); | |
| 596 | 794 | String[] fcsjs=fcsj.split(":"); |
| 597 | 795 | int fcsjNum=Integer.parseInt(fcsjs[0])*60+Integer.parseInt(fcsjs[1]); |
| 598 | 796 | |
| 599 | 797 | if(xlDir.equals("0")){ |
| 600 | - if(fcsjNum>=sxFc && fcsjNum<sj_0){ | |
| 798 | + if(fcsjNum>=minSj && fcsjNum<sj_0){ | |
| 601 | 799 | ccsj0 +=bcsj; |
| 602 | 800 | if(aC<0){ |
| 603 | 801 | cfc0 =fcsjNum; |
| ... | ... | @@ -672,7 +870,7 @@ public class ReportServiceImpl implements ReportService{ |
| 672 | 870 | } |
| 673 | 871 | jcfc0W=fcsjNum; |
| 674 | 872 | } |
| 675 | - }else if(fcsjNum<sxFc){ | |
| 873 | + }else if(fcsjNum<minSj){ | |
| 676 | 874 | jcsj0 +=bcsj; |
| 677 | 875 | if(aJcZ<0){ |
| 678 | 876 | jcfc0Z=fcsjNum; |
| ... | ... | @@ -690,7 +888,7 @@ public class ReportServiceImpl implements ReportService{ |
| 690 | 888 | |
| 691 | 889 | |
| 692 | 890 | }else{ |
| 693 | - if(fcsjNum>=xxFc && fcsjNum<sj_0){ | |
| 891 | + if(fcsjNum>=minSj && fcsjNum<sj_0){ | |
| 694 | 892 | ccsj1 +=bcsj; |
| 695 | 893 | if(aC1<0){ |
| 696 | 894 | cfc1=fcsjNum; |
| ... | ... | @@ -762,7 +960,7 @@ public class ReportServiceImpl implements ReportService{ |
| 762 | 960 | |
| 763 | 961 | jcfc1W=fcsjNum; |
| 764 | 962 | } |
| 765 | - }else if(fcsjNum<xxFc){ | |
| 963 | + }else if(fcsjNum<minSj){ | |
| 766 | 964 | jcsj1 +=bcsj; |
| 767 | 965 | if(aJc1Z<0){ |
| 768 | 966 | jcfc1Z=fcsjNum; |
| ... | ... | @@ -860,4 +1058,5 @@ public class ReportServiceImpl implements ReportService{ |
| 860 | 1058 | } |
| 861 | 1059 | return list; |
| 862 | 1060 | } |
| 1061 | + | |
| 863 | 1062 | } | ... | ... |
src/main/resources/static/pages/excep/boundList.html
| ... | ... | @@ -82,7 +82,9 @@ |
| 82 | 82 | <option value="-1">无效</option> |
| 83 | 83 | </select> |
| 84 | 84 | </td> |
| 85 | - <td></td> | |
| 85 | + <td> | |
| 86 | + <input class="form-control" type="date" name="date" /> | |
| 87 | + </td> | |
| 86 | 88 | <td> |
| 87 | 89 | <button class="btn btn-sm green btn-outline filter-submit margin-bottom" > |
| 88 | 90 | <i class="fa fa-search"></i> 搜索</button> |
| ... | ... | @@ -237,8 +239,20 @@ $(function(){ |
| 237 | 239 | initPagination = false; |
| 238 | 240 | return; |
| 239 | 241 | } |
| 242 | + var cells = $('tr.filter')[0].cells | |
| 243 | + ,params = {} | |
| 244 | + ,name; | |
| 245 | + $.each(cells, function(i, cell){ | |
| 246 | + var items = $('input,select', cell); | |
| 247 | + for(var j = 0, item; item = items[j++];){ | |
| 248 | + name = $(item).attr('name'); | |
| 249 | + if(name){ | |
| 250 | + params[name] = $(item).val(); | |
| 251 | + } | |
| 252 | + } | |
| 253 | + }); | |
| 240 | 254 | page = num - 1; |
| 241 | - jsDoQuery(null, false); | |
| 255 | + jsDoQuery(params, false); | |
| 242 | 256 | } |
| 243 | 257 | }); |
| 244 | 258 | } | ... | ... |
src/main/resources/static/pages/excep/offlineList.html
| ... | ... | @@ -82,7 +82,9 @@ |
| 82 | 82 | <option value="-1">无效</option> |
| 83 | 83 | </select> |
| 84 | 84 | </td> |
| 85 | - <td></td> | |
| 85 | + <td> | |
| 86 | + <input class="form-control" type="date" name="date" /> | |
| 87 | + </td> | |
| 86 | 88 | <td> |
| 87 | 89 | <button class="btn btn-sm green btn-outline filter-submit margin-bottom" > |
| 88 | 90 | <i class="fa fa-search"></i> 搜索</button> |
| ... | ... | @@ -242,7 +244,20 @@ $(function(){ |
| 242 | 244 | |
| 243 | 245 | |
| 244 | 246 | page = num - 1; |
| 245 | - jsDoQuery(null, false); | |
| 247 | + | |
| 248 | + var cells = $('tr.filter')[0].cells | |
| 249 | + ,params = {} | |
| 250 | + ,name; | |
| 251 | + $.each(cells, function(i, cell){ | |
| 252 | + var items = $('input,select', cell); | |
| 253 | + for(var j = 0, item; item = items[j++];){ | |
| 254 | + name = $(item).attr('name'); | |
| 255 | + if(name){ | |
| 256 | + params[name] = $(item).val(); | |
| 257 | + } | |
| 258 | + } | |
| 259 | + }); | |
| 260 | + jsDoQuery(params, false); | |
| 246 | 261 | } |
| 247 | 262 | }); |
| 248 | 263 | } | ... | ... |
src/main/resources/static/pages/excep/speedingList.html
| ... | ... | @@ -72,6 +72,7 @@ |
| 72 | 72 | <input type="text" class="form-control form-filter input-sm" name="nbbm"> |
| 73 | 73 | </td> |
| 74 | 74 | <td> |
| 75 | + <input class="form-control" type="date" name="date" /> | |
| 75 | 76 | </td> |
| 76 | 77 | <td></td> |
| 77 | 78 | <td> |
| ... | ... | @@ -238,7 +239,19 @@ $(function(){ |
| 238 | 239 | return; |
| 239 | 240 | } |
| 240 | 241 | page = num - 1; |
| 241 | - jsDoQuery(null, false); | |
| 242 | + var cells = $('tr.filter')[0].cells | |
| 243 | + ,params = {} | |
| 244 | + ,name; | |
| 245 | + $.each(cells, function(i, cell){ | |
| 246 | + var items = $('input,select', cell); | |
| 247 | + for(var j = 0, item; item = items[j++];){ | |
| 248 | + name = $(item).attr('name'); | |
| 249 | + if(name){ | |
| 250 | + params[name] = $(item).val(); | |
| 251 | + } | |
| 252 | + } | |
| 253 | + }); | |
| 254 | + jsDoQuery(params, false); | |
| 242 | 255 | } |
| 243 | 256 | }); |
| 244 | 257 | } | ... | ... |
src/main/resources/static/pages/forms/statement/scheduleDailyQp.html
| ... | ... | @@ -61,20 +61,20 @@ |
| 61 | 61 | <th colspan="3" style="text-align:center;vertical-align:middle;">驾驶员</th> |
| 62 | 62 | <th colspan="3" style="text-align:center;vertical-align:middle;">售票员</th> |
| 63 | 63 | <th rowspan="3" style="text-align:center;vertical-align:middle;">路牌</th> |
| 64 | - <th rowspan="3" style="text-align:center;vertical-align:middle;">记录项目</th> | |
| 65 | - <th colspan="3" style="text-align:center;vertical-align:middle;">1</th> | |
| 66 | - <th colspan="3" style="text-align:center;vertical-align:middle;">2</th> | |
| 67 | - <th colspan="3" style="text-align:center;vertical-align:middle;">3</th> | |
| 68 | - <th colspan="3" style="text-align:center;vertical-align:middle;">4</th> | |
| 69 | - <th colspan="3" style="text-align:center;vertical-align:middle;">5</th> | |
| 70 | - <th colspan="3" style="text-align:center;vertical-align:middle;">6</th> | |
| 71 | - <th colspan="3" style="text-align:center;vertical-align:middle;">7</th> | |
| 72 | - <th colspan="3" style="text-align:center;vertical-align:middle;">8</th> | |
| 73 | - <th colspan="3" style="text-align:center;vertical-align:middle;">9</th> | |
| 74 | - <th colspan="3" style="text-align:center;vertical-align:middle;">10</th> | |
| 75 | - <th colspan="3" style="text-align:center;vertical-align:middle;">11</th> | |
| 76 | - <th colspan="3" style="text-align:center;vertical-align:middle;">12</th> | |
| 77 | - <th colspan="3" style="text-align:center;vertical-align:middle;">13</th> | |
| 64 | + <th rowspan="4" style="text-align:center;vertical-align:middle;">记录项目</th> | |
| 65 | + <th colspan="4" style="text-align:center;vertical-align:middle;">1</th> | |
| 66 | + <th colspan="4" style="text-align:center;vertical-align:middle;">2</th> | |
| 67 | + <th colspan="4" style="text-align:center;vertical-align:middle;">3</th> | |
| 68 | + <th colspan="4" style="text-align:center;vertical-align:middle;">4</th> | |
| 69 | + <th colspan="4" style="text-align:center;vertical-align:middle;">5</th> | |
| 70 | + <th colspan="4" style="text-align:center;vertical-align:middle;">6</th> | |
| 71 | + <th colspan="4" style="text-align:center;vertical-align:middle;">7</th> | |
| 72 | + <th colspan="4" style="text-align:center;vertical-align:middle;">8</th> | |
| 73 | + <th colspan="4" style="text-align:center;vertical-align:middle;">9</th> | |
| 74 | + <th colspan="4" style="text-align:center;vertical-align:middle;">10</th> | |
| 75 | + <th colspan="4" style="text-align:center;vertical-align:middle;">11</th> | |
| 76 | + <th colspan="4" style="text-align:center;vertical-align:middle;">12</th> | |
| 77 | + <th colspan="4" style="text-align:center;vertical-align:middle;">13</th> | |
| 78 | 78 | |
| 79 | 79 | </tr> |
| 80 | 80 | <tr> |
| ... | ... | @@ -86,42 +86,55 @@ |
| 86 | 86 | <th rowspan="2">到达</th> |
| 87 | 87 | <th rowspan="2">早/迟</th> |
| 88 | 88 | <th rowspan="2">开出</th> |
| 89 | + <th rowspan="2">备注</th> | |
| 89 | 90 | <th rowspan="2">到达</th> |
| 90 | 91 | <th rowspan="2">早/迟</th> |
| 91 | 92 | <th rowspan="2">开出</th> |
| 93 | + <th rowspan="2">备注</th> | |
| 92 | 94 | <th rowspan="2">到达</th> |
| 93 | 95 | <th rowspan="2">早/迟</th> |
| 94 | 96 | <th rowspan="2">开出</th> |
| 97 | + <th rowspan="2">备注</th> | |
| 95 | 98 | <th rowspan="2">到达</th> |
| 96 | 99 | <th rowspan="2">早/迟</th> |
| 97 | 100 | <th rowspan="2">开出</th> |
| 101 | + <th rowspan="2">备注</th> | |
| 98 | 102 | <th rowspan="2">到达</th> |
| 99 | 103 | <th rowspan="2">早/迟</th> |
| 100 | 104 | <th rowspan="2">开出</th> |
| 105 | + <th rowspan="2">备注</th> | |
| 101 | 106 | <th rowspan="2">到达</th> |
| 102 | 107 | <th rowspan="2">早/迟</th> |
| 103 | 108 | <th rowspan="2">开出</th> |
| 109 | + <th rowspan="2">备注</th> | |
| 104 | 110 | <th rowspan="2">到达</th> |
| 105 | 111 | <th rowspan="2">早/迟</th> |
| 106 | 112 | <th rowspan="2">开出</th> |
| 113 | + <th rowspan="2">备注</th> | |
| 107 | 114 | <th rowspan="2">到达</th> |
| 108 | 115 | <th rowspan="2">早/迟</th> |
| 109 | 116 | <th rowspan="2">开出</th> |
| 117 | + <th rowspan="2">备注</th> | |
| 110 | 118 | <th rowspan="2">到达</th> |
| 111 | 119 | <th rowspan="2">早/迟</th> |
| 112 | 120 | <th rowspan="2">开出</th> |
| 121 | + <th rowspan="2">备注</th> | |
| 113 | 122 | <th rowspan="2">到达</th> |
| 114 | 123 | <th rowspan="2">早/迟</th> |
| 115 | 124 | <th rowspan="2">开出</th> |
| 125 | + <th rowspan="2">备注</th> | |
| 116 | 126 | <th rowspan="2">到达</th> |
| 117 | 127 | <th rowspan="2">早/迟</th> |
| 118 | 128 | <th rowspan="2">开出</th> |
| 129 | + <th rowspan="2">备注</th> | |
| 119 | 130 | <th rowspan="2">到达</th> |
| 120 | 131 | <th rowspan="2">早/迟</th> |
| 121 | 132 | <th rowspan="2">开出</th> |
| 133 | + <th rowspan="2">备注</th> | |
| 122 | 134 | <th rowspan="2">到达</th> |
| 123 | 135 | <th rowspan="2">早/迟</th> |
| 124 | 136 | <th rowspan="2">开出</th> |
| 137 | + <th rowspan="2">备注</th> | |
| 125 | 138 | </tr> |
| 126 | 139 | <tr> |
| 127 | 140 | <th>出场</th> |
| ... | ... | @@ -134,17 +147,80 @@ |
| 134 | 147 | </thead> |
| 135 | 148 | <tbody> |
| 136 | 149 | <tr > |
| 137 | - <td></td> | |
| 150 | + <td>1</td> | |
| 138 | 151 | <td> |
| 152 | + YT-CD001 | |
| 139 | 153 | </td> |
| 140 | - <td></td> | |
| 141 | - <td></td> | |
| 142 | - <td></td> | |
| 143 | - <td colspan="46"> | |
| 144 | - <div> | |
| 145 | - | |
| 146 | - </div> | |
| 154 | + <td> | |
| 155 | + | |
| 156 | + </td> | |
| 157 | + <td> | |
| 158 | + 1 | |
| 159 | + </td> | |
| 160 | + <td> | |
| 161 | + 00001 | |
| 162 | + </td> | |
| 163 | + <td > | |
| 164 | + 04:30 | |
| 147 | 165 | </td> |
| 166 | + <td></td> | |
| 167 | + <td></td> | |
| 168 | + <td></td> | |
| 169 | + <td></td> | |
| 170 | + <td>1</td> | |
| 171 | + <td></td> | |
| 172 | + <td>06:50</td> | |
| 173 | + <td>1</td> | |
| 174 | + <td>06:00</td> | |
| 175 | + <td></td> | |
| 176 | + <td>08:02</td> | |
| 177 | + <td>-2</td> | |
| 178 | + <td>07:10</td> | |
| 179 | + <td></td> | |
| 180 | + <td></td> | |
| 181 | + <td></td> | |
| 182 | + <td></td> | |
| 183 | + <td></td> | |
| 184 | + <td></td> | |
| 185 | + <td></td> | |
| 186 | + <td></td> | |
| 187 | + <td></td> | |
| 188 | + <td></td> | |
| 189 | + <td></td> | |
| 190 | + <td></td> | |
| 191 | + <td></td> | |
| 192 | + <td></td> | |
| 193 | + <td></td> | |
| 194 | + <td></td> | |
| 195 | + <td></td> | |
| 196 | + <td></td> | |
| 197 | + <td></td> | |
| 198 | + <td></td> | |
| 199 | + <td></td> | |
| 200 | + <td></td> | |
| 201 | + <td></td> | |
| 202 | + <td></td> | |
| 203 | + <td></td> | |
| 204 | + <td></td> | |
| 205 | + <td></td> | |
| 206 | + <td></td> | |
| 207 | + <td></td> | |
| 208 | + <td></td> | |
| 209 | + <td></td> | |
| 210 | + <td></td> | |
| 211 | + <td></td> | |
| 212 | + <td></td> | |
| 213 | + <td></td> | |
| 214 | + <td></td> | |
| 215 | + <td></td> | |
| 216 | + <td></td> | |
| 217 | + <td></td> | |
| 218 | + <td></td> | |
| 219 | + <td></td> | |
| 220 | + <td></td> | |
| 221 | + <td></td> | |
| 222 | + <td></td> | |
| 223 | + <td></td> | |
| 148 | 224 | </tr> |
| 149 | 225 | |
| 150 | 226 | </tbody> | ... | ... |
src/main/resources/static/pages/report/inoutstation.html
| ... | ... | @@ -294,17 +294,18 @@ |
| 294 | 294 | var id=params[0].split("\\")[0]; |
| 295 | 295 | var fcsj = $('.in_carpark_fcsj[data-id='+id+']', '#forms').html(); |
| 296 | 296 | var ddsj= $('.in_carpark_zdsj[data-id='+id+']', '#forms').html(); |
| 297 | - | |
| 298 | - $post('/report/queryListZdxx',{clzbh:nbbm,date:rq,line:line,fcsj:fcsj,ddsj:ddsj},function(result){ | |
| 299 | - var xlmc="线路: "+$("#select2-line-container").html(); | |
| 300 | - var clmc="车辆: "+nbbm; | |
| 301 | - var rqmc="日期: "+rq; | |
| 302 | - var bcmc="班次: "+fcsj+"-"+ddsj; | |
| 303 | - $("#dlzmx").html("到离站详细 "+xlmc+" "+clmc+" "+rqmc+" "+bcmc); | |
| 304 | - var ludan_ll_1 = template('ludan_ll_1',{list:result}); | |
| 305 | - // 把渲染好的模版html文本追加到表格中 | |
| 306 | - $('#forms1 .ludan_ll_1').html(ludan_ll_1); | |
| 307 | - }); | |
| 297 | + if(!(typeof(fcsj)=='undefined'|| typeof(ddsj)=='undefined')){ | |
| 298 | + $post('/report/queryListZdxx',{clzbh:nbbm,date:rq,line:line,fcsj:fcsj,ddsj:ddsj},function(result){ | |
| 299 | + var xlmc="线路: "+$("#select2-line-container").html(); | |
| 300 | + var clmc="车辆: "+nbbm; | |
| 301 | + var rqmc="日期: "+rq; | |
| 302 | + var bcmc="班次: "+fcsj+"-"+ddsj; | |
| 303 | + $("#dlzmx").html("到离站详细 "+xlmc+" "+clmc+" "+rqmc+" "+bcmc); | |
| 304 | + var ludan_ll_1 = template('ludan_ll_1',{list:result}); | |
| 305 | + // 把渲染好的模版html文本追加到表格中 | |
| 306 | + $('#forms1 .ludan_ll_1').html(ludan_ll_1); | |
| 307 | + }); | |
| 308 | + } | |
| 308 | 309 | }) |
| 309 | 310 | |
| 310 | 311 | $("#query2").click(function(){ | ... | ... |
src/main/resources/static/pages/report/timetable/timetable.html
| ... | ... | @@ -141,21 +141,21 @@ |
| 141 | 141 | <div class="portlet-body"> |
| 142 | 142 | <div class="row"> |
| 143 | 143 | <div class="col-md-6" > |
| 144 | - <table class="table table-bordered table-checkable"> | |
| 144 | + <table class="table table-bordered table-checkable" id="formsTime4"> | |
| 145 | 145 | <tr> |
| 146 | 146 | <td colspan="6">调度形式</td> |
| 147 | 147 | </tr> |
| 148 | 148 | <tr> |
| 149 | - <td colspan="3" align="center">上行向()站</td> | |
| 150 | - <td colspan="3" align="center">下行向()站</td> | |
| 149 | + <td colspan="3" align="center">上行向(<span id="skb_sxzd"></span>)站</td> | |
| 150 | + <td colspan="3" align="center">下行向(<span id="skb_xxzd"></span>)站</td> | |
| 151 | 151 | </tr> |
| 152 | 152 | <tr> |
| 153 | - <td>起讫站</td> | |
| 154 | - <td>起讫时间</td> | |
| 155 | - <td>班次</td> | |
| 156 | - <td>起讫站</td> | |
| 157 | - <td>起讫时间</td> | |
| 158 | - <td>班次</td> | |
| 153 | + <td width="22%">起讫站</td> | |
| 154 | + <td width="20%">起讫时间</td> | |
| 155 | + <td width="8%">班次</td> | |
| 156 | + <td width="22%">起讫站</td> | |
| 157 | + <td width="20%">起讫时间</td> | |
| 158 | + <td width="8%">班次</td> | |
| 159 | 159 | </tr> |
| 160 | 160 | <tbody class="tbody_time_4"> |
| 161 | 161 | |
| ... | ... | @@ -283,26 +283,25 @@ |
| 283 | 283 | $.get('/report/tbodyTime2',{line:line,ttinfo:ttinfo},function(result){ |
| 284 | 284 | var tbodyTime2 = template('tbodyTime2',{map:result}); |
| 285 | 285 | $('#formsTime2 .tbody_time_2').html(tbodyTime2); |
| 286 | - });/* | |
| 286 | + }); | |
| 287 | 287 | $.get('/report/tbodyTime3',{line:line,ttinfo:ttinfo},function(result){ |
| 288 | - | |
| 289 | 288 | var tbodyTime3 = template('tbodyTime3',{list:result}); |
| 290 | 289 | $('#formsTime3 .tbody_time_3').html(tbodyTime3); |
| 291 | 290 | var divTime3 = window.document.getElementById('formsTime3'); |
| 292 | 291 | var divTime2 = window.document.getElementById('formsTime2'); |
| 293 | - console.log(divTime3.offsetHeight); | |
| 294 | 292 | divTime2.style.height=divTime3.offsetHeight+"px"; |
| 295 | - }); */ | |
| 293 | + }); | |
| 296 | 294 | |
| 297 | - /* | |
| 298 | - $.get('/report/tbodyTime4',{line:line,date:date},function(result){ | |
| 299 | - var scheduleDaily_3 = template('scheduleDaily_3',{list:result}); | |
| 300 | - $('#forms .scheduleDaily_3').html(scheduleDaily_3); | |
| 301 | - });*/ | |
| 302 | - /* $.get('/report/tbodyTime5',{line:line,ttinfo:ttinfo},function(result){ | |
| 295 | + $.get('/report/tbodyTime4',{line:line,ttinfo:ttinfo},function(result){ | |
| 296 | + $("#skb_sxzd").html(result[0].sxzm); | |
| 297 | + $("#skb_xxzd").html(result[0].xxzm); | |
| 298 | + var tbodyTime4 = template('tbodyTime4',{list:result}); | |
| 299 | + $('#formsTime4 .tbody_time_4').html(tbodyTime4); | |
| 300 | + }); | |
| 301 | + $.get('/report/tbodyTime5',{line:line,ttinfo:ttinfo},function(result){ | |
| 303 | 302 | var tbodyTime5 = template('tbodyTime5',{list:result}); |
| 304 | 303 | $('#formsTime5 .tbody_time_5').html(tbodyTime5); |
| 305 | - }); */ | |
| 304 | + }); | |
| 306 | 305 | } |
| 307 | 306 | |
| 308 | 307 | |
| ... | ... | @@ -352,6 +351,27 @@ |
| 352 | 351 | </script> |
| 353 | 352 | |
| 354 | 353 | |
| 354 | + | |
| 355 | + | |
| 356 | +<script type="text/html" id="tbodyTime4"> | |
| 357 | +{{each list as result i}} | |
| 358 | + | |
| 359 | + <tr> | |
| 360 | + <td align="center">{{result.sxzm}}</td> | |
| 361 | + <td align="center">{{result.sxsj}}</td> | |
| 362 | + <td align="center">{{result.sxbc}}</td> | |
| 363 | + <td align="center">{{result.xxzm}}</td> | |
| 364 | + <td align="center">{{result.xxsj}}</td> | |
| 365 | + <td align="center">{{result.xxbc}}</td> | |
| 366 | + </tr> | |
| 367 | +{{/each}} | |
| 368 | +{{if list.length == 0}} | |
| 369 | + <tr> | |
| 370 | + <td colspan="5"><h6 class="muted">没有找到相关数据</h6></td> | |
| 371 | + </tr> | |
| 372 | + {{/if}} | |
| 373 | +</script> | |
| 374 | + | |
| 355 | 375 | <script type="text/html" id="tbodyTime5"> |
| 356 | 376 | {{each list as result i}} |
| 357 | 377 | <tr> | ... | ... |