Commit f635ab2c19ccea2868fafddfa8226586414affe6
1 parent
6f4b7dee
报表
Showing
3 changed files
with
33 additions
and
23 deletions
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| @@ -1115,7 +1115,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -1115,7 +1115,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 1115 | // int cjbc = scheduleRealInfoRepository.findCjbc(jName, clZbh, lpName); | 1115 | // int cjbc = scheduleRealInfoRepository.findCjbc(jName, clZbh, lpName); |
| 1116 | // int ljbc = scheduleRealInfoRepository.findLjbc(jName, clZbh, lpName); | 1116 | // int ljbc = scheduleRealInfoRepository.findLjbc(jName, clZbh, lpName); |
| 1117 | int jhbc = 0,cjbc = 0,ljbc = 0; | 1117 | int jhbc = 0,cjbc = 0,ljbc = 0; |
| 1118 | - double jhlc = 0, yygl = 0, ksgl = 0,tempJhlc = 0; | 1118 | + double jhlc = 0, yygl = 0, ksgl = 0,tempJhlc = 0,jcclc=0; |
| 1119 | float addMileage = 0l,remMileage = 0l; | 1119 | float addMileage = 0l,remMileage = 0l; |
| 1120 | Map<String,Object> map = new HashMap<String, Object>(); | 1120 | Map<String,Object> map = new HashMap<String, Object>(); |
| 1121 | for(ScheduleRealInfo scheduleRealInfo : list){ | 1121 | for(ScheduleRealInfo scheduleRealInfo : list){ |
| @@ -1141,8 +1141,11 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -1141,8 +1141,11 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 1141 | Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks(); | 1141 | Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks(); |
| 1142 | //计算营运里程,空驶里程 | 1142 | //计算营运里程,空驶里程 |
| 1143 | if(childTaskPlans.isEmpty()){ | 1143 | if(childTaskPlans.isEmpty()){ |
| 1144 | - if(scheduleRealInfo.getBcType().equals("in") || scheduleRealInfo.getBcType().equals("out") | ||
| 1145 | - || scheduleRealInfo.getBcType().equals("venting")){ | 1144 | + if(scheduleRealInfo.getBcType().equals("in") || |
| 1145 | + scheduleRealInfo.getBcType().equals("out")){ | ||
| 1146 | + ksgl += tempJhlc; | ||
| 1147 | + jcclc +=tempJhlc; | ||
| 1148 | + }else if(scheduleRealInfo.getBcType().equals("venting")){ | ||
| 1146 | ksgl += tempJhlc; | 1149 | ksgl += tempJhlc; |
| 1147 | }else{ | 1150 | }else{ |
| 1148 | if(scheduleRealInfo.getStatus() != -1){ | 1151 | if(scheduleRealInfo.getStatus() != -1){ |
| @@ -1177,6 +1180,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -1177,6 +1180,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 1177 | map.put("cjbc", cjbc); | 1180 | map.put("cjbc", cjbc); |
| 1178 | map.put("ljbc", ljbc); | 1181 | map.put("ljbc", ljbc); |
| 1179 | map.put("sjbc", jhbc-cjbc+ljbc); | 1182 | map.put("sjbc", jhbc-cjbc+ljbc); |
| 1183 | + map.put("jcclc", jcclc); | ||
| 1180 | return map; | 1184 | return map; |
| 1181 | } | 1185 | } |
| 1182 | 1186 |
src/main/resources/static/pages/forms/statement/waybill.html
| @@ -338,8 +338,8 @@ | @@ -338,8 +338,8 @@ | ||
| 338 | <td>{{remMileage}}</td> | 338 | <td>{{remMileage}}</td> |
| 339 | <td colspan="2">临加公里</td> | 339 | <td colspan="2">临加公里</td> |
| 340 | <td>{{addMileage}}</td> | 340 | <td>{{addMileage}}</td> |
| 341 | - <td colspan="2">营运公里</td> | ||
| 342 | - <td colspan="3">{{yygl}}</td> | 341 | + <td colspan="3">营运公里</td> |
| 342 | + <td colspan="2">{{yygl}}</td> | ||
| 343 | </tr> | 343 | </tr> |
| 344 | <tr> | 344 | <tr> |
| 345 | <td colspan="2">空驶公里</td> | 345 | <td colspan="2">空驶公里</td> |
| @@ -348,8 +348,8 @@ | @@ -348,8 +348,8 @@ | ||
| 348 | <td>{{realMileage}}</td> | 348 | <td>{{realMileage}}</td> |
| 349 | <td colspan="2">计划班次</td> | 349 | <td colspan="2">计划班次</td> |
| 350 | <td>{{jhbc}}</td> | 350 | <td>{{jhbc}}</td> |
| 351 | - <td colspan="2">烂班班次</td> | ||
| 352 | - <td colspan="3">{{cjbc}}</td> | 351 | + <td colspan="3">烂班班次</td> |
| 352 | + <td colspan="2">{{cjbc}}</td> | ||
| 353 | </tr> | 353 | </tr> |
| 354 | <tr> | 354 | <tr> |
| 355 | <td colspan="2">增加班次</td> | 355 | <td colspan="2">增加班次</td> |
| @@ -358,8 +358,8 @@ | @@ -358,8 +358,8 @@ | ||
| 358 | <td>{{sjbc}}</td> | 358 | <td>{{sjbc}}</td> |
| 359 | <td colspan="2"></td> | 359 | <td colspan="2"></td> |
| 360 | <td></td> | 360 | <td></td> |
| 361 | - <td colspan="2"></td> | ||
| 362 | <td colspan="3"></td> | 361 | <td colspan="3"></td> |
| 362 | + <td colspan="2"></td> | ||
| 363 | </tr> | 363 | </tr> |
| 364 | </script> | 364 | </script> |
| 365 | <script type="text/html" id="ludan_4"> | 365 | <script type="text/html" id="ludan_4"> |
src/main/resources/static/pages/forms/statement/waybillQp.html
| @@ -334,32 +334,38 @@ | @@ -334,32 +334,38 @@ | ||
| 334 | <tr> | 334 | <tr> |
| 335 | <td colspan="2">计划公里</td> | 335 | <td colspan="2">计划公里</td> |
| 336 | <td>{{jhlc}}</td> | 336 | <td>{{jhlc}}</td> |
| 337 | + <td colspan="2">营运公里</td> | ||
| 338 | + <td >{{yygl}}</td> | ||
| 337 | <td colspan="2">烂班公里</td> | 339 | <td colspan="2">烂班公里</td> |
| 338 | <td>{{remMileage}}</td> | 340 | <td>{{remMileage}}</td> |
| 339 | - <td colspan="2">临加公里</td> | ||
| 340 | - <td>{{addMileage}}</td> | ||
| 341 | - <td colspan="2">营运公里</td> | ||
| 342 | - <td colspan="3">{{yygl}}</td> | 341 | + <td colspan="3">空驶公里</td> |
| 342 | + <td colspan="2">{{ksgl}}</td> | ||
| 343 | + | ||
| 344 | + | ||
| 343 | </tr> | 345 | </tr> |
| 344 | <tr> | 346 | <tr> |
| 345 | - <td colspan="2">空驶公里</td> | ||
| 346 | - <td>{{ksgl}}</td> | ||
| 347 | - <td colspan="2">总公里</td> | ||
| 348 | - <td>{{realMileage}}</td> | ||
| 349 | <td colspan="2">计划班次</td> | 347 | <td colspan="2">计划班次</td> |
| 350 | <td>{{jhbc}}</td> | 348 | <td>{{jhbc}}</td> |
| 351 | - <td colspan="2">烂班班次</td> | ||
| 352 | - <td colspan="3">{{cjbc}}</td> | 349 | + |
| 350 | + <td colspan="2">进出场公里</td> | ||
| 351 | + <td>{{jcclc}}</td> | ||
| 352 | + <td colspan="2">临加公里</td> | ||
| 353 | + <td>{{addMileage}}</td> | ||
| 354 | + <td colspan="3">烂班班次</td> | ||
| 355 | + <td colspan="2">{{cjbc}}</td> | ||
| 356 | + | ||
| 353 | </tr> | 357 | </tr> |
| 354 | <tr> | 358 | <tr> |
| 355 | - <td colspan="2">增加班次</td> | ||
| 356 | - <td>{{ljbc}}</td> | 359 | + |
| 357 | <td colspan="2">实际班次</td> | 360 | <td colspan="2">实际班次</td> |
| 358 | <td>{{sjbc}}</td> | 361 | <td>{{sjbc}}</td> |
| 359 | - <td colspan="2"></td> | ||
| 360 | - <td></td> | ||
| 361 | - <td colspan="2"></td> | 362 | + <td colspan="2">总公里</td> |
| 363 | + <td>{{realMileage}}</td> | ||
| 364 | + <td colspan="2">临加班次</td> | ||
| 365 | + <td>{{ljbc}}</td> | ||
| 366 | + | ||
| 362 | <td colspan="3"></td> | 367 | <td colspan="3"></td> |
| 368 | + <td colspan="2"></td> | ||
| 363 | </tr> | 369 | </tr> |
| 364 | </script> | 370 | </script> |
| 365 | <script type="text/html" id="ludan_4"> | 371 | <script type="text/html" id="ludan_4"> |