Commit a54badccf3432b5d01a67d39816c221c74f71fe0
1 parent
d9ea8cf2
班次大间隔详细修改
Showing
4 changed files
with
35 additions
and
18 deletions
src/main/java/com/bsth/controller/report/ReportController.java
| @@ -297,6 +297,8 @@ public class ReportController { | @@ -297,6 +297,8 @@ public class ReportController { | ||
| 297 | m_.put("qSj", jsonObject.getString("qSj")); | 297 | m_.put("qSj", jsonObject.getString("qSj")); |
| 298 | m_.put("hJh", jsonObject.getString("hJh")); | 298 | m_.put("hJh", jsonObject.getString("hJh")); |
| 299 | m_.put("hSj", jsonObject.getString("hSj")); | 299 | m_.put("hSj", jsonObject.getString("hSj")); |
| 300 | + m_.put("djgsj", jsonObject.getString("djgsj")); | ||
| 301 | + m_.put("bcjgsj", jsonObject.getString("bcjgsj")); | ||
| 300 | lMap.add(m_); | 302 | lMap.add(m_); |
| 301 | } | 303 | } |
| 302 | List<Iterator<?>> listI = new ArrayList<Iterator<?>>(); | 304 | List<Iterator<?>> listI = new ArrayList<Iterator<?>>(); |
src/main/java/com/bsth/service/report/impl/ReportServiceImpl.java
| @@ -2402,6 +2402,8 @@ public class ReportServiceImpl implements ReportService{ | @@ -2402,6 +2402,8 @@ public class ReportServiceImpl implements ReportService{ | ||
| 2402 | m.put("qSj", time); | 2402 | m.put("qSj", time); |
| 2403 | m.put("hJh", listInfo.get(i+1).getFcsj()); | 2403 | m.put("hJh", listInfo.get(i+1).getFcsj()); |
| 2404 | m.put("hSj", listInfo.get(i+1).getFcsjActual()); | 2404 | m.put("hSj", listInfo.get(i+1).getFcsjActual()); |
| 2405 | + m.put("djgsj", peak); | ||
| 2406 | + m.put("bcjgsj", (fscjNext-fcsjTime)/60000); | ||
| 2405 | mapList.add(m); | 2407 | mapList.add(m); |
| 2406 | } | 2408 | } |
| 2407 | }else{ | 2409 | }else{ |
| @@ -2416,6 +2418,8 @@ public class ReportServiceImpl implements ReportService{ | @@ -2416,6 +2418,8 @@ public class ReportServiceImpl implements ReportService{ | ||
| 2416 | m.put("qSj", time); | 2418 | m.put("qSj", time); |
| 2417 | m.put("hJh", listInfo.get(i+1).getFcsj()); | 2419 | m.put("hJh", listInfo.get(i+1).getFcsj()); |
| 2418 | m.put("hSj", listInfo.get(i+1).getFcsjActual()); | 2420 | m.put("hSj", listInfo.get(i+1).getFcsjActual()); |
| 2421 | + m.put("djgsj", trough); | ||
| 2422 | + m.put("bcjgsj", (fscjNext-fcsjTime)/60000); | ||
| 2419 | mapList.add(m); | 2423 | mapList.add(m); |
| 2420 | } | 2424 | } |
| 2421 | } | 2425 | } |
| @@ -2443,6 +2447,8 @@ public class ReportServiceImpl implements ReportService{ | @@ -2443,6 +2447,8 @@ public class ReportServiceImpl implements ReportService{ | ||
| 2443 | m.put("qSj", time); | 2447 | m.put("qSj", time); |
| 2444 | m.put("hJh", listInfo.get(i+1).getFcsj()); | 2448 | m.put("hJh", listInfo.get(i+1).getFcsj()); |
| 2445 | m.put("hSj", listInfo.get(i+1).getFcsjActual()); | 2449 | m.put("hSj", listInfo.get(i+1).getFcsjActual()); |
| 2450 | + m.put("djgsj", peak); | ||
| 2451 | + m.put("bcjgsj", (fscjNext-fcsjTime)/60000); | ||
| 2446 | mapList.add(m); | 2452 | mapList.add(m); |
| 2447 | } | 2453 | } |
| 2448 | }else{ | 2454 | }else{ |
| @@ -2457,6 +2463,8 @@ public class ReportServiceImpl implements ReportService{ | @@ -2457,6 +2463,8 @@ public class ReportServiceImpl implements ReportService{ | ||
| 2457 | m.put("qSj", time); | 2463 | m.put("qSj", time); |
| 2458 | m.put("hJh", listInfo.get(i+1).getFcsj()); | 2464 | m.put("hJh", listInfo.get(i+1).getFcsj()); |
| 2459 | m.put("hSj", listInfo.get(i+1).getFcsjActual()); | 2465 | m.put("hSj", listInfo.get(i+1).getFcsjActual()); |
| 2466 | + m.put("djgsj", trough); | ||
| 2467 | + m.put("bcjgsj", (fscjNext-fcsjTime)/60000); | ||
| 2460 | mapList.add(m); | 2468 | mapList.add(m); |
| 2461 | } | 2469 | } |
| 2462 | } | 2470 | } |
src/main/resources/static/pages/forms/mould/countIntervalXx.xls
No preview for this file type
src/main/resources/static/pages/report/countInterval/countInterval.html
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | <div class="portlet-body"> | 52 | <div class="portlet-body"> |
| 53 | <div class="row" class="col-md-12"> | 53 | <div class="row" class="col-md-12"> |
| 54 | <div class="col-md-5"> | 54 | <div class="col-md-5"> |
| 55 | - <div id="left_table" style="margin-top: 10px;overflow:auto;height: 860px"> | 55 | + <div id="left_table" style="margin-top: 10px;overflow:auto;"> |
| 56 | <input class="btn btn-default hidden" type="button" id="export" value="导出"/> | 56 | <input class="btn btn-default hidden" type="button" id="export" value="导出"/> |
| 57 | <table class="table table-bordered table-hover table-checkable pre-scrollable" id="info_inter"> | 57 | <table class="table table-bordered table-hover table-checkable pre-scrollable" id="info_inter"> |
| 58 | <thead> | 58 | <thead> |
| @@ -61,7 +61,7 @@ | @@ -61,7 +61,7 @@ | ||
| 61 | <th>线路</th> | 61 | <th>线路</th> |
| 62 | <th>等级</th> | 62 | <th>等级</th> |
| 63 | <th>班次数</th> | 63 | <th>班次数</th> |
| 64 | - <th>发生次数</th> | 64 | + <th>次数</th> |
| 65 | <th>发生率</th> | 65 | <th>发生率</th> |
| 66 | </tr> | 66 | </tr> |
| 67 | </thead> | 67 | </thead> |
| @@ -77,16 +77,21 @@ | @@ -77,16 +77,21 @@ | ||
| 77 | <table class="table table-bordered table-hover table-checkable" id="forms"> | 77 | <table class="table table-bordered table-hover table-checkable" id="forms"> |
| 78 | <thead class="hidden"> | 78 | <thead class="hidden"> |
| 79 | <tr > | 79 | <tr > |
| 80 | - <th rowspan="2">分公司</th> | ||
| 81 | - <th rowspan="2">线路</th> | ||
| 82 | - <th rowspan="2">大间隔等级</th> | ||
| 83 | - <th colspan="4">发生大间隔班次</th> | 80 | + <th rowspan="3">分公司</th> |
| 81 | + <th rowspan="3">线路</th> | ||
| 82 | + <th rowspan="3">等级</th> | ||
| 83 | + <th colspan="6">发生大间隔班次</th> | ||
| 84 | </tr> | 84 | </tr> |
| 85 | <tr> | 85 | <tr> |
| 86 | - <th>计发</th> | ||
| 87 | - <th>实发</th> | ||
| 88 | - <th>计发</th> | ||
| 89 | - <th>实发</th> | 86 | + <th rowspan="2">计发</th> |
| 87 | + <th rowspan="2">实发</th> | ||
| 88 | + <th rowspan="2">计发</th> | ||
| 89 | + <th rowspan="2">实发</th> | ||
| 90 | + <th colspan="2">间隔时间(分)</th> | ||
| 91 | + </tr> | ||
| 92 | + <tr> | ||
| 93 | + <th>班次</th> | ||
| 94 | + <th>大间隔</th> | ||
| 90 | </tr> | 95 | </tr> |
| 91 | </thead> | 96 | </thead> |
| 92 | <tbody> | 97 | <tbody> |
| @@ -208,7 +213,7 @@ | @@ -208,7 +213,7 @@ | ||
| 208 | layer.msg("请选择时间!"); | 213 | layer.msg("请选择时间!"); |
| 209 | return; | 214 | return; |
| 210 | } | 215 | } |
| 211 | -// $("#left_table").height($(window).height()-100); | 216 | + $("#left_table").height($(window).height()-200); |
| 212 | line = $("#line").val(); | 217 | line = $("#line").val(); |
| 213 | date = $("#date").val(); | 218 | date = $("#date").val(); |
| 214 | gsbm =$("#gsdm").val(); | 219 | gsbm =$("#gsdm").val(); |
| @@ -296,13 +301,15 @@ | @@ -296,13 +301,15 @@ | ||
| 296 | <script type="text/html" id="list_inter_info_xx"> | 301 | <script type="text/html" id="list_inter_info_xx"> |
| 297 | {{each list as obj i}} | 302 | {{each list as obj i}} |
| 298 | <tr> | 303 | <tr> |
| 299 | - <td width="20%">{{obj.fgsname}}</td> | ||
| 300 | - <td width="20%">{{obj.xlName}}</td> | ||
| 301 | - <td width="10%">{{obj.djgde}}</td> | ||
| 302 | - <td width="10%">{{obj.qJh}}</td> | ||
| 303 | - <td width="10%">{{obj.qSj}}</td> | ||
| 304 | - <td width="10%">{{obj.hJh}}</td> | ||
| 305 | - <td width="10%">{{obj.hSj}}</td> | 304 | + <td width="14%">{{obj.fgsname}}</td> |
| 305 | + <td width="16%">{{obj.xlName}}</td> | ||
| 306 | + <td width="8%">{{obj.djgde}}</td> | ||
| 307 | + <td width="8%">{{obj.qJh}}</td> | ||
| 308 | + <td width="8%">{{obj.qSj}}</td> | ||
| 309 | + <td width="8%">{{obj.hJh}}</td> | ||
| 310 | + <td width="8%">{{obj.hSj}}</td> | ||
| 311 | + <td width="10%">{{obj.bcjgsj}}</td> | ||
| 312 | + <td width="10%">{{obj.djgsj}}</td> | ||
| 306 | </tr> | 313 | </tr> |
| 307 | {{/each}} | 314 | {{/each}} |
| 308 | {{if list.length == 0}} | 315 | {{if list.length == 0}} |