Commit b271bb86b468312048a11a47843946b728d5cf2a
1 parent
0e2c7ee5
青浦-纯电车日报表,导出文档添加营运班次一列;损失公里没有计算的问题(损失公里就是烂班公里)。
Showing
2 changed files
with
5 additions
and
3 deletions
src/main/java/com/bsth/service/impl/RefuelServiceImpl.java
| @@ -312,7 +312,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | @@ -312,7 +312,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | ||
| 312 | 312 | ||
| 313 | realMileage = add(add(sjgl, ksgl), add(jccgl, ljgl)); | 313 | realMileage = add(add(sjgl, ksgl), add(jccgl, ljgl)); |
| 314 | ksMileage = add(ksgl, jccgl); | 314 | ksMileage = add(ksgl, jccgl); |
| 315 | -// ssMileage = "" + culateMileageService.culateLbgl(list2); //损失里程?少驶里程? | 315 | + ssMileage = "" + culateMileageService.culateLbgl(list2); |
| 316 | jhbc = "" + culateMileageService.culateJhbc(list2, ""); | 316 | jhbc = "" + culateMileageService.culateJhbc(list2, ""); |
| 317 | sjbc = "" + culateMileageService.culateSjbc(list2, ""); | 317 | sjbc = "" + culateMileageService.culateSjbc(list2, ""); |
| 318 | bc = "" + list2.size(); | 318 | bc = "" + list2.size(); |
| @@ -619,7 +619,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | @@ -619,7 +619,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | ||
| 619 | List<Map<String, Object>> resList = new ArrayList<Map<String, Object>>(); | 619 | List<Map<String, Object>> resList = new ArrayList<Map<String, Object>>(); |
| 620 | Map<String, Object> lastMap = new HashMap<String, Object>(); | 620 | Map<String, Object> lastMap = new HashMap<String, Object>(); |
| 621 | String realMileage_z = "0", ksMileage_z = "0", ssMileage_z = "0", | 621 | String realMileage_z = "0", ksMileage_z = "0", ssMileage_z = "0", |
| 622 | - jhbc_z = "0", sjbc_z = "0", bc_z = "0", cr_z = "0"; | 622 | + jhbc_z = "0", sjbc_z = "0", bc_z = "0", yybc_z = "0", cr_z = "0"; |
| 623 | 623 | ||
| 624 | List<String> sKeyList = new ArrayList<String>(); | 624 | List<String> sKeyList = new ArrayList<String>(); |
| 625 | Map<String, List<ScheduleRealInfo>> sMap = new HashMap<String, List<ScheduleRealInfo>>(); | 625 | Map<String, List<ScheduleRealInfo>> sMap = new HashMap<String, List<ScheduleRealInfo>>(); |
| @@ -668,7 +668,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | @@ -668,7 +668,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | ||
| 668 | 668 | ||
| 669 | realMileage = add(add(sjgl, ksgl), add(jccgl, ljgl)); | 669 | realMileage = add(add(sjgl, ksgl), add(jccgl, ljgl)); |
| 670 | ksMileage = add(ksgl, jccgl); | 670 | ksMileage = add(ksgl, jccgl); |
| 671 | -// ssMileage = "" + culateMileageService.culateLbgl(list2); //损失里程?少驶里程? | 671 | + ssMileage = "" + culateMileageService.culateLbgl(list2); |
| 672 | jhbc = "" + culateMileageService.culateJhbc(list2, ""); | 672 | jhbc = "" + culateMileageService.culateJhbc(list2, ""); |
| 673 | sjbc = "" + culateMileageService.culateSjbc(list2, ""); | 673 | sjbc = "" + culateMileageService.culateSjbc(list2, ""); |
| 674 | ljbc = "" + culateMileageService.culateLjbc(list2, ""); | 674 | ljbc = "" + culateMileageService.culateLjbc(list2, ""); |
| @@ -689,6 +689,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | @@ -689,6 +689,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | ||
| 689 | jhbc_z = new BigDecimal(jhbc_z).add(new BigDecimal(jhbc)).toString(); | 689 | jhbc_z = new BigDecimal(jhbc_z).add(new BigDecimal(jhbc)).toString(); |
| 690 | sjbc_z = new BigDecimal(sjbc_z).add(new BigDecimal(sjbc)).toString(); | 690 | sjbc_z = new BigDecimal(sjbc_z).add(new BigDecimal(sjbc)).toString(); |
| 691 | bc_z = new BigDecimal(bc_z).add(new BigDecimal(bc)).toString(); | 691 | bc_z = new BigDecimal(bc_z).add(new BigDecimal(bc)).toString(); |
| 692 | + yybc_z = new BigDecimal(yybc_z).add(new BigDecimal(sjbc)).add(new BigDecimal(ljbc)).toString(); | ||
| 692 | cr_z = new BigDecimal(cr_z).add(new BigDecimal(cr)).toString(); | 693 | cr_z = new BigDecimal(cr_z).add(new BigDecimal(cr)).toString(); |
| 693 | 694 | ||
| 694 | for(ScheduleRealInfo s : list2){ | 695 | for(ScheduleRealInfo s : list2){ |
| @@ -751,6 +752,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | @@ -751,6 +752,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | ||
| 751 | lastMap.put("ssMileage", ssMileage_z); | 752 | lastMap.put("ssMileage", ssMileage_z); |
| 752 | lastMap.put("consume", ""); | 753 | lastMap.put("consume", ""); |
| 753 | lastMap.put("bc", bc_z); | 754 | lastMap.put("bc", bc_z); |
| 755 | + lastMap.put("yybc", yybc_z); | ||
| 754 | lastMap.put("jhbc", jhbc_z); | 756 | lastMap.put("jhbc", jhbc_z); |
| 755 | lastMap.put("sjbc", sjbc_z); | 757 | lastMap.put("sjbc", sjbc_z); |
| 756 | lastMap.put("cr", cr_z); | 758 | lastMap.put("cr", cr_z); |
src/main/resources/static/pages/forms/mould/refuelDc.xls
No preview for this file type