Commit de27418397bd02d89f6951126d138f26677f7204

Authored by 廖磊
1 parent 1f466d89

大间隔修改为万班次发生率

src/main/java/com/bsth/service/calc/impl/CalcIntervalServiceImpl.java
... ... @@ -123,9 +123,11 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl<CalcInterval,Intege
123 123 }
124 124 });
125 125 }else{
  126 + //统计信息中需要查询所有班次
  127 +// and djg_all >0
126 128 String sql="select gsbm,fgsbm,xl_bm,xl_name,SUM(bcs) as bcs,MAX(id) as id,SUM(djg_all) as djgAll,SUM(djg_gf) as djgGf,"
127 129 + "SUM(djg_dg) as djgDg,SUM(djg_zgf) as djgZgf,SUM(djg_wgf) as djgWgf,MAX(djg_time) as djgTime "
128   - + "from bsth_c_calc_interval where date>= '"+sDate+"' and date<='"+eDate+"' and level <> 'D' and djg_all >0 ";
  130 + + "from bsth_c_calc_interval where date>= '"+sDate+"' and date<='"+eDate+"' and level <> 'D' ";
129 131 if(line.equals("")){
130 132 if(fgs.equals("")){
131 133 sql +=" and gsbm = '"+gs+"'";
... ... @@ -150,12 +152,12 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl&lt;CalcInterval,Intege
150 152 m.put("id", rs.getInt("id"));
151 153 int djgAll=rs.getInt("djgAll");
152 154 int bcs=rs.getInt("bcs");
153   - //全日发生率 (大间隔次数/全日班次数
  155 + //万班次发生率 (大间隔次数/全日班次数*10000
154 156 if(bcs>0){
155   - double fsl=(djgAll*1.0)/(bcs*1.0)*100;
156   - m.put("fsl", df.format(fsl)+"%");
  157 + double fsl=(djgAll*1.0)/(bcs*1.0)*10000;
  158 + m.put("fsl", df.format(fsl));
157 159 }else{
158   - m.put("fsl", "0.0%");
  160 + m.put("fsl", "0.0");
159 161 }
160 162 m.put("djgAll", rs.getString("djgAll"));
161 163 m.put("djgGf", rs.getString("djgGf"));
... ... @@ -243,12 +245,12 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl&lt;CalcInterval,Intege
243 245 m.put("djgDg", t.getDjgDg());
244 246 int djgAll=t.getDjgAll();
245 247 int bcs=t.getBcs();
246   - //全日发生率 (大间隔次数/全日班次数
  248 + //全日发生率 (大间隔次数/全日班次数*10000) 万班次发生率
247 249 if(bcs>0){
248   - double fsl=(djgAll*1.0)/(bcs*1.0)*100;
249   - m.put("fsl", df.format(fsl)+"%");
  250 + double fsl=(djgAll*1.0)/(bcs*1.0)*10000;
  251 + m.put("fsl", df.format(fsl));
250 252 }else{
251   - m.put("fsl", "0.0%");
  253 + m.put("fsl", "0.0");
252 254 }
253 255 m.put("bcs", t.getBcs());
254 256 m.put("djgTime", t.getDjgTime());
... ...
src/main/resources/static/pages/forms/mould/calcIntervalCount.xls
No preview for this file type
src/main/resources/static/pages/forms/mould/calcIntervalList1.xls
No preview for this file type
src/main/resources/static/pages/report/sheet/intervalCount.html
... ... @@ -79,7 +79,7 @@
79 79 <td>晚高峰次数</td>
80 80 <td>低谷次数</td>
81 81 <td>全日班次数</td>
82   - <td>全日发生率</td>
  82 + <td>万班次发生率</td>
83 83 <td>最大间隔时间</td>
84 84 <td>查看</td>
85 85 </tr>
... ... @@ -125,7 +125,7 @@
125 125 <td>晚高峰次数</td>
126 126 <td>低谷次数</td>
127 127 <td>全日班次数</td>
128   - <td>全日发生率</td>
  128 + <td>万班次发生率</td>
129 129 <td>最大间隔</td>
130 130 <td>查看</td>
131 131 </tr>
... ... @@ -467,7 +467,7 @@
467 467 {{/each}}
468 468 {{if list.length == 0}}
469 469 <tr>
470   - <td colspan="10"><h6 class="muted">没有找到相关数据</h6></td>
  470 + <td colspan="12"><h6 class="muted">没有找到相关数据</h6></td>
471 471 </tr>
472 472 {{/if}}
473 473 </script>
... ... @@ -521,7 +521,7 @@
521 521 {{/each}}
522 522 {{if list.length == 0}}
523 523 <tr>
524   - <td colspan="11"><h6 class="muted">没有找到相关数据</h6></td>
  524 + <td colspan="14"><h6 class="muted">没有找到相关数据</h6></td>
525 525 </tr>
526 526 {{/if}}
527 527 </script>
... ... @@ -550,13 +550,9 @@
550 550 {{/each}}
551 551 {{if list.length == 0}}
552 552 <tr>
553   - <td colspan="7"><h6 class="muted">没有找到相关数据</h6></td>
554   - </tr>
555   - {{/if}}
556   - {{if list.length == 0}}
557   - <tr>
558   - <td colspan="7"><h6 class="muted">没有找到相关数据</h6></td>
  553 + <td colspan="11"><h6 class="muted">没有找到相关数据</h6></td>
559 554 </tr>
560 555 {{/if}}
  556 +
561 557 </script>
562 558  
... ...