Commit 277db0ee8c7cfdac9c3ff211df34f0522dbd5f53
1 parent
4ed22960
班次车辆人员日报表统计
审计报表去掉子任务空放营运
Showing
3 changed files
with
71 additions
and
5 deletions
src/main/java/com/bsth/service/report/impl/CulateMileageServiceImpl.java
| @@ -1193,13 +1193,13 @@ public class CulateMileageServiceImpl implements CulateMileageService{ | @@ -1193,13 +1193,13 @@ public class CulateMileageServiceImpl implements CulateMileageService{ | ||
| 1193 | while (it.hasNext()) { | 1193 | while (it.hasNext()) { |
| 1194 | ChildTaskPlan childTaskPlan = it.next(); | 1194 | ChildTaskPlan childTaskPlan = it.next(); |
| 1195 | if(item.equals("空放")){ | 1195 | if(item.equals("空放")){ |
| 1196 | - if(childTaskPlan.getType2().equals("1")){ | 1196 | + /*if(childTaskPlan.getType2().equals("1")){ |
| 1197 | if (!childTaskPlan.isDestroy()) { | 1197 | if (!childTaskPlan.isDestroy()) { |
| 1198 | if(childTaskPlan.getReason().equals(item)){ | 1198 | if(childTaskPlan.getReason().equals(item)){ |
| 1199 | zrwjcclc=Arith.add(zrwjcclc,childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage()); | 1199 | zrwjcclc=Arith.add(zrwjcclc,childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage()); |
| 1200 | } | 1200 | } |
| 1201 | } | 1201 | } |
| 1202 | - } | 1202 | + }*/ |
| 1203 | }else{ | 1203 | }else{ |
| 1204 | if(childTaskPlan.getType2().equals("2")||childTaskPlan.getType2().equals("3")){ | 1204 | if(childTaskPlan.getType2().equals("2")||childTaskPlan.getType2().equals("3")){ |
| 1205 | if (!childTaskPlan.isDestroy()) { | 1205 | if (!childTaskPlan.isDestroy()) { |
src/main/java/com/bsth/service/report/impl/ReportServiceImpl.java
| @@ -2615,7 +2615,7 @@ public class ReportServiceImpl implements ReportService{ | @@ -2615,7 +2615,7 @@ public class ReportServiceImpl implements ReportService{ | ||
| 2615 | map.put("zrwjcclc2", zrwjcclc2); | 2615 | map.put("zrwjcclc2", zrwjcclc2); |
| 2616 | map.put("zrwjcclcqt", zrwjcclcqt); | 2616 | map.put("zrwjcclcqt", zrwjcclcqt); |
| 2617 | double zrwjcc=Arith.add(Arith.add(Arith.add(zrwjcclc, zrwjcclc1), zrwjcclc2),zrwjcclcqt); | 2617 | double zrwjcc=Arith.add(Arith.add(Arith.add(zrwjcclc, zrwjcclc1), zrwjcclc2),zrwjcclcqt); |
| 2618 | - double kfks=Arith.add(culateService.culateKfksLc(lists),culateService.culateZrwJccLc(list, "空放")); | 2618 | + double kfks=culateService.culateKfksLc(lists); |
| 2619 | map.put("kfks", kfks); | 2619 | map.put("kfks", kfks); |
| 2620 | double zlc=Arith.add(Arith.add(Arith.add(zrwjcc, ljlc), | 2620 | double zlc=Arith.add(Arith.add(Arith.add(zrwjcc, ljlc), |
| 2621 | Arith.add(zjcclc, zyylc)),kfks); | 2621 | Arith.add(zjcclc, zyylc)),kfks); |
src/main/resources/static/pages/mforms/shifdays/shifday.html
| @@ -65,10 +65,10 @@ | @@ -65,10 +65,10 @@ | ||
| 65 | <table class="table table-bordered table-hover table-checkable" id="forms"> | 65 | <table class="table table-bordered table-hover table-checkable" id="forms"> |
| 66 | <thead> | 66 | <thead> |
| 67 | <tr> | 67 | <tr> |
| 68 | - <th>驾驶员</th> | 68 | + <th class="jsypx" style="cursor:pointer ">驾驶员</th> |
| 69 | <th>售票员</th> | 69 | <th>售票员</th> |
| 70 | <th>路牌</th> | 70 | <th>路牌</th> |
| 71 | - <th>车辆</th> | 71 | + <th class="zbhpx" style="cursor:pointer ">车辆</th> |
| 72 | <th>计划里程</th> | 72 | <th>计划里程</th> |
| 73 | <th>实际计划里程</th> | 73 | <th>实际计划里程</th> |
| 74 | <th>运营里程</th> | 74 | <th>运营里程</th> |
| @@ -202,7 +202,70 @@ $(function(){ | @@ -202,7 +202,70 @@ $(function(){ | ||
| 202 | } | 202 | } |
| 203 | }); | 203 | }); |
| 204 | 204 | ||
| 205 | + var type="desc"; | ||
| 206 | + $(".jsypx").on("click",function(){ | ||
| 207 | + var line = $("#line").val(); | ||
| 208 | + var date = $("#date").val(); | ||
| 209 | + var gsdmShif = $("#gsdmShif").val(); | ||
| 210 | + var fgsdmShif = $("#fgsdmShif").val(); | ||
| 211 | + var params = {}; | ||
| 212 | + params.fgsdmShif =fgsdmShif; | ||
| 213 | + params.date =date; | ||
| 214 | + params.gsdmShif =gsdmShif; | ||
| 215 | + params.line =line; | ||
| 216 | + params.state="j_name"; | ||
| 217 | + params.type=type; | ||
| 218 | + if(date=="" || date ==null){ | ||
| 219 | + layer.msg('请选择日期.'); | ||
| 220 | + }else{ | ||
| 221 | + $get('/mcy_forms/shifday',params,function(result){ | ||
| 222 | + if(type=="desc"){ | ||
| 223 | + type ="asc"; | ||
| 224 | + }else{ | ||
| 225 | + type ="desc"; | ||
| 226 | + } | ||
| 227 | + $.each(result, function(i, obj) { | ||
| 228 | + obj.requestType = reqCodeMap[obj.requestType]; | ||
| 229 | + }); | ||
| 230 | + // 把数据填充到模版中 | ||
| 231 | + var tbodyHtml = template('shifday',{list:result}); | ||
| 232 | + // 把渲染好的模版html文本追加到表格中 | ||
| 233 | + $('#forms tbody').html(tbodyHtml); | ||
| 234 | + }); | ||
| 235 | + } | ||
| 236 | + }) | ||
| 205 | 237 | ||
| 238 | + $(".zbhpx").on("click",function(){ | ||
| 239 | + var line = $("#line").val(); | ||
| 240 | + var date = $("#date").val(); | ||
| 241 | + var gsdmShif = $("#gsdmShif").val(); | ||
| 242 | + var fgsdmShif = $("#fgsdmShif").val(); | ||
| 243 | + var params = {}; | ||
| 244 | + params.fgsdmShif =fgsdmShif; | ||
| 245 | + params.date =date; | ||
| 246 | + params.gsdmShif =gsdmShif; | ||
| 247 | + params.line =line; | ||
| 248 | + params.state="cl_zbh"; | ||
| 249 | + params.type=type; | ||
| 250 | + if(date=="" || date ==null){ | ||
| 251 | + layer.msg('请选择日期.'); | ||
| 252 | + }else{ | ||
| 253 | + $get('/mcy_forms/shifday',params,function(result){ | ||
| 254 | + if(type=="desc"){ | ||
| 255 | + type ="asc"; | ||
| 256 | + }else{ | ||
| 257 | + type ="desc"; | ||
| 258 | + } | ||
| 259 | + $.each(result, function(i, obj) { | ||
| 260 | + obj.requestType = reqCodeMap[obj.requestType]; | ||
| 261 | + }); | ||
| 262 | + // 把数据填充到模版中 | ||
| 263 | + var tbodyHtml = template('shifday',{list:result}); | ||
| 264 | + // 把渲染好的模版html文本追加到表格中 | ||
| 265 | + $('#forms tbody').html(tbodyHtml); | ||
| 266 | + }); | ||
| 267 | + } | ||
| 268 | + }) | ||
| 206 | 269 | ||
| 207 | $("#query").on("click",function(){ | 270 | $("#query").on("click",function(){ |
| 208 | var line = $("#line").val(); | 271 | var line = $("#line").val(); |
| @@ -214,10 +277,13 @@ $(function(){ | @@ -214,10 +277,13 @@ $(function(){ | ||
| 214 | params.date =date; | 277 | params.date =date; |
| 215 | params.gsdmShif =gsdmShif; | 278 | params.gsdmShif =gsdmShif; |
| 216 | params.line =line; | 279 | params.line =line; |
| 280 | + params.state="j_name"; | ||
| 281 | + params.type=type; | ||
| 217 | if(date=="" || date ==null){ | 282 | if(date=="" || date ==null){ |
| 218 | layer.msg('请选择日期.'); | 283 | layer.msg('请选择日期.'); |
| 219 | }else{ | 284 | }else{ |
| 220 | $get('/mcy_forms/shifday',params,function(result){ | 285 | $get('/mcy_forms/shifday',params,function(result){ |
| 286 | + type ='asc'; | ||
| 221 | $.each(result, function(i, obj) { | 287 | $.each(result, function(i, obj) { |
| 222 | obj.requestType = reqCodeMap[obj.requestType]; | 288 | obj.requestType = reqCodeMap[obj.requestType]; |
| 223 | }); | 289 | }); |