Commit 1ac53d4096093de819fa0b7c9d0c83ff7c1046ba
1 parent
bd5368ad
20250808青浦工单:1、班次日报表新增列"实际损失公里";2、纯电车日报表原“损失公里”改为“实际损失公里”列名与数据都改;实际损失公里=损失公里-加车公里。
Showing
8 changed files
with
30 additions
and
7 deletions
src/main/java/com/bsth/controller/forms/ExportController.java
| @@ -773,6 +773,7 @@ public class ExportController { | @@ -773,6 +773,7 @@ public class ExportController { | ||
| 773 | m.put("jzl1", d.getJzl1()); | 773 | m.put("jzl1", d.getJzl1()); |
| 774 | m.put("lblc", d.getLblc()); | 774 | m.put("lblc", d.getLblc()); |
| 775 | m.put("ljlc", d.getLjlc()); | 775 | m.put("ljlc", d.getLjlc()); |
| 776 | + m.put("sjssgl", d.getSjssgl()); | ||
| 776 | m.put("yh", d.getYh()); | 777 | m.put("yh", d.getYh()); |
| 777 | m.put("bc", d.getBc()); | 778 | m.put("bc", d.getBc()); |
| 778 | m.put("carDay", d.getCarDay()); | 779 | m.put("carDay", d.getCarDay()); |
| @@ -792,6 +793,7 @@ public class ExportController { | @@ -792,6 +793,7 @@ public class ExportController { | ||
| 792 | m.put("total_ks", ks); | 793 | m.put("total_ks", ks); |
| 793 | m.put("total_lblc", lblc); | 794 | m.put("total_lblc", lblc); |
| 794 | m.put("total_ljlc", ljlc); | 795 | m.put("total_ljlc", ljlc); |
| 796 | + m.put("total_sjssgl", Arith.sub(lblc, ljlc)); | ||
| 795 | m.put("total_yh", yh); | 797 | m.put("total_yh", yh); |
| 796 | m.put("total_bc", bc); | 798 | m.put("total_bc", bc); |
| 797 | m.put("total_carDay", carDay); | 799 | m.put("total_carDay", carDay); |
src/main/java/com/bsth/entity/mcy_forms/Daily.java
| @@ -32,6 +32,8 @@ public class Daily { | @@ -32,6 +32,8 @@ public class Daily { | ||
| 32 | 32 | ||
| 33 | private String ljlc;//加车公里(临加) | 33 | private String ljlc;//加车公里(临加) |
| 34 | 34 | ||
| 35 | + private String sjssgl;//实际损失公里(损失/少驶公里 - 加车/临加公里) | ||
| 36 | + | ||
| 35 | private int carDay;//车日 | 37 | private int carDay;//车日 |
| 36 | 38 | ||
| 37 | public String getZbh() { | 39 | public String getZbh() { |
| @@ -114,6 +116,14 @@ public class Daily { | @@ -114,6 +116,14 @@ public class Daily { | ||
| 114 | this.ljlc = ljlc; | 116 | this.ljlc = ljlc; |
| 115 | } | 117 | } |
| 116 | 118 | ||
| 119 | + public String getSjssgl() { | ||
| 120 | + return sjssgl; | ||
| 121 | + } | ||
| 122 | + | ||
| 123 | + public void setSjssgl(String sjssgl) { | ||
| 124 | + this.sjssgl = sjssgl; | ||
| 125 | + } | ||
| 126 | + | ||
| 117 | public int getCarDay() { | 127 | public int getCarDay() { |
| 118 | return carDay; | 128 | return carDay; |
| 119 | } | 129 | } |
src/main/java/com/bsth/service/forms/impl/FormsServiceImpl.java
| @@ -3097,6 +3097,7 @@ public class FormsServiceImpl implements FormsService { | @@ -3097,6 +3097,7 @@ public class FormsServiceImpl implements FormsService { | ||
| 3097 | d.setBc(String.valueOf(culateMileageService.culateSjbc(sList, "")+culateMileageService.culateLjbc(sList, ""))); | 3097 | d.setBc(String.valueOf(culateMileageService.culateSjbc(sList, "")+culateMileageService.culateLjbc(sList, ""))); |
| 3098 | d.setLblc(String.valueOf(lbgl)); // 损失公里 | 3098 | d.setLblc(String.valueOf(lbgl)); // 损失公里 |
| 3099 | d.setLjlc(String.valueOf(ljgl)); // 加车公里 | 3099 | d.setLjlc(String.valueOf(ljgl)); // 加车公里 |
| 3100 | + d.setSjssgl(String.valueOf(Arith.sub(lbgl, ljgl))); // 实际损失公里(损失公里-加车公里,20250808青浦巴士工单) | ||
| 3100 | d.setCarDay(1); // 车日 | 3101 | d.setCarDay(1); // 车日 |
| 3101 | } | 3102 | } |
| 3102 | return list; | 3103 | return list; |
src/main/java/com/bsth/service/impl/RefuelServiceImpl.java
| @@ -9,6 +9,7 @@ import com.bsth.repository.RefuelRepository; | @@ -9,6 +9,7 @@ import com.bsth.repository.RefuelRepository; | ||
| 9 | import com.bsth.security.util.SecurityUtils; | 9 | import com.bsth.security.util.SecurityUtils; |
| 10 | import com.bsth.service.RefuelService; | 10 | import com.bsth.service.RefuelService; |
| 11 | import com.bsth.service.report.CulateMileageService; | 11 | import com.bsth.service.report.CulateMileageService; |
| 12 | +import com.bsth.util.Arith; | ||
| 12 | import com.bsth.util.ReportUtils; | 13 | import com.bsth.util.ReportUtils; |
| 13 | 14 | ||
| 14 | import java.io.File; | 15 | import java.io.File; |
| @@ -770,7 +771,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | @@ -770,7 +771,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | ||
| 770 | 771 | ||
| 771 | List<Map<String, Object>> resList = new ArrayList<Map<String, Object>>(); | 772 | List<Map<String, Object>> resList = new ArrayList<Map<String, Object>>(); |
| 772 | Map<String, Object> lastMap = new HashMap<String, Object>(); | 773 | Map<String, Object> lastMap = new HashMap<String, Object>(); |
| 773 | - String realMileage_z = "0", ksMileage_z = "0", ssMileage_z = "0", | 774 | + String realMileage_z = "0", ksMileage_z = "0", ssMileage_z = "0", ljgl_z = "0", |
| 774 | jhbc_z = "0", sjbc_z = "0", bc_z = "0", yybc_z = "0", cr_z = "0"; | 775 | jhbc_z = "0", sjbc_z = "0", bc_z = "0", yybc_z = "0", cr_z = "0"; |
| 775 | 776 | ||
| 776 | List<String> sKeyList = new ArrayList<String>(); | 777 | List<String> sKeyList = new ArrayList<String>(); |
| @@ -851,6 +852,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | @@ -851,6 +852,7 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | ||
| 851 | if(ssMileage.length() > 0){ | 852 | if(ssMileage.length() > 0){ |
| 852 | ssMileage_z = new BigDecimal(ssMileage_z).add(new BigDecimal(ssMileage)).toString(); | 853 | ssMileage_z = new BigDecimal(ssMileage_z).add(new BigDecimal(ssMileage)).toString(); |
| 853 | } | 854 | } |
| 855 | + ljgl_z = Arith.add(ljgl_z, ljgl)+""; | ||
| 854 | jhbc_z = new BigDecimal(jhbc_z).add(new BigDecimal(jhbc)).toString(); | 856 | jhbc_z = new BigDecimal(jhbc_z).add(new BigDecimal(jhbc)).toString(); |
| 855 | sjbc_z = new BigDecimal(sjbc_z).add(new BigDecimal(sjbc)).toString(); | 857 | sjbc_z = new BigDecimal(sjbc_z).add(new BigDecimal(sjbc)).toString(); |
| 856 | bc_z = new BigDecimal(bc_z).add(new BigDecimal(bc)).toString(); | 858 | bc_z = new BigDecimal(bc_z).add(new BigDecimal(bc)).toString(); |
| @@ -894,6 +896,8 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | @@ -894,6 +896,8 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | ||
| 894 | m.put("realMileage", realMileage); | 896 | m.put("realMileage", realMileage); |
| 895 | m.put("ksMileage", ksMileage); | 897 | m.put("ksMileage", ksMileage); |
| 896 | m.put("ssMileage", ssMileage); | 898 | m.put("ssMileage", ssMileage); |
| 899 | + m.put("ljgl", ljgl); | ||
| 900 | + m.put("sjssgl", Arith.sub(ssMileage, ljgl)); // 实际损失公里(损失公里-加车公里,20250808青浦巴士工单) | ||
| 897 | m.put("consume", ""); | 901 | m.put("consume", ""); |
| 898 | m.put("bc", bc); | 902 | m.put("bc", bc); |
| 899 | m.put("jhbc", jhbc); | 903 | m.put("jhbc", jhbc); |
| @@ -917,6 +921,8 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | @@ -917,6 +921,8 @@ public class RefuelServiceImpl extends BaseServiceImpl<Refuel, Long> implements | ||
| 917 | lastMap.put("realMileage", realMileage_z); | 921 | lastMap.put("realMileage", realMileage_z); |
| 918 | lastMap.put("ksMileage", ksMileage_z); | 922 | lastMap.put("ksMileage", ksMileage_z); |
| 919 | lastMap.put("ssMileage", ssMileage_z); | 923 | lastMap.put("ssMileage", ssMileage_z); |
| 924 | + lastMap.put("ljgl", ljgl_z); | ||
| 925 | + lastMap.put("sjssgl", Arith.sub(ssMileage_z, ljgl_z)+""); // 实际损失公里(损失公里-加车公里,20250808青浦巴士工单) | ||
| 920 | lastMap.put("consume", ""); | 926 | lastMap.put("consume", ""); |
| 921 | lastMap.put("bc", bc_z); | 927 | lastMap.put("bc", bc_z); |
| 922 | lastMap.put("yybc", yybc_z); | 928 | lastMap.put("yybc", yybc_z); |
src/main/resources/static/pages/forms/mould/daily.xls
No preview for this file type
src/main/resources/static/pages/forms/mould/refuelDc.xls
No preview for this file type
src/main/resources/static/pages/forms/statement/daily.html
| @@ -55,13 +55,13 @@ | @@ -55,13 +55,13 @@ | ||
| 55 | <table class="table table-bordered table-hover table-checkable" id="forms"> | 55 | <table class="table table-bordered table-hover table-checkable" id="forms"> |
| 56 | <thead> | 56 | <thead> |
| 57 | <tr> | 57 | <tr> |
| 58 | - <th colspan="11">调度班次日报</th> | 58 | + <th colspan="12">调度班次日报</th> |
| 59 | </tr> | 59 | </tr> |
| 60 | <tr> | 60 | <tr> |
| 61 | <td>路线:</td> | 61 | <td>路线:</td> |
| 62 | <td colspan="3"><span id="form_line"> </span></td> | 62 | <td colspan="3"><span id="form_line"> </span></td> |
| 63 | <td>时间:</td> | 63 | <td>时间:</td> |
| 64 | - <td colspan="6"><span id="form_date"> </span></td> | 64 | + <td colspan="7"><span id="form_date"> </span></td> |
| 65 | </tr> | 65 | </tr> |
| 66 | <tr> | 66 | <tr> |
| 67 | <td>车辆</td> | 67 | <td>车辆</td> |
| @@ -72,6 +72,7 @@ | @@ -72,6 +72,7 @@ | ||
| 72 | <td>空驶公里</td> | 72 | <td>空驶公里</td> |
| 73 | <td>损失公里</td> | 73 | <td>损失公里</td> |
| 74 | <td>加车公里</td> | 74 | <td>加车公里</td> |
| 75 | + <td>实际损失公里</td> | ||
| 75 | <td>油耗</td> | 76 | <td>油耗</td> |
| 76 | <td>班次</td> | 77 | <td>班次</td> |
| 77 | <td>车日</td> | 78 | <td>车日</td> |
| @@ -86,6 +87,7 @@ | @@ -86,6 +87,7 @@ | ||
| 86 | <td><span id="total_ks"> </span></td> | 87 | <td><span id="total_ks"> </span></td> |
| 87 | <td><span id="total_lbgl"> </span></td> | 88 | <td><span id="total_lbgl"> </span></td> |
| 88 | <td><span id="total_ljgl"> </span></td> | 89 | <td><span id="total_ljgl"> </span></td> |
| 90 | + <td><span id="total_sjssgl"> </span></td> | ||
| 89 | <td><span id="total_yh"> </span></td> | 91 | <td><span id="total_yh"> </span></td> |
| 90 | <td><span id="total_bc"> </span></td> | 92 | <td><span id="total_bc"> </span></td> |
| 91 | <td><span id="total_carDay"> </span></td> | 93 | <td><span id="total_carDay"> </span></td> |
| @@ -220,7 +222,7 @@ | @@ -220,7 +222,7 @@ | ||
| 220 | var total_zgl = 0,total_ks = 0; | 222 | var total_zgl = 0,total_ks = 0; |
| 221 | var total_yh = 0,total_bc = 0; | 223 | var total_yh = 0,total_bc = 0; |
| 222 | var total_lbgl = 0,total_ljgl = 0; | 224 | var total_lbgl = 0,total_ljgl = 0; |
| 223 | - var total_carDay = 0; | 225 | + var total_sjssgl = 0,total_carDay = 0; |
| 224 | 226 | ||
| 225 | $.each(result, function(i, obj) { | 227 | $.each(result, function(i, obj) { |
| 226 | total_zgl += Number(obj.zlc*10000); | 228 | total_zgl += Number(obj.zlc*10000); |
| @@ -238,6 +240,7 @@ | @@ -238,6 +240,7 @@ | ||
| 238 | $("#total_bc").text(total_bc.toFixed(0)); | 240 | $("#total_bc").text(total_bc.toFixed(0)); |
| 239 | $("#total_lbgl").text((total_lbgl/10000).toFixed(3)); | 241 | $("#total_lbgl").text((total_lbgl/10000).toFixed(3)); |
| 240 | $("#total_ljgl").text((total_ljgl/10000).toFixed(3)); | 242 | $("#total_ljgl").text((total_ljgl/10000).toFixed(3)); |
| 243 | + $("#total_sjssgl").text(((total_lbgl-total_ljgl)/10000).toFixed(3)); | ||
| 241 | $("#total_carDay").text(total_carDay.toFixed(0)); | 244 | $("#total_carDay").text(total_carDay.toFixed(0)); |
| 242 | 245 | ||
| 243 | var temp = {}; | 246 | var temp = {}; |
| @@ -283,6 +286,7 @@ | @@ -283,6 +286,7 @@ | ||
| 283 | <td>{{obj.jzl1}}</td> | 286 | <td>{{obj.jzl1}}</td> |
| 284 | <td>{{obj.lblc}}</td> | 287 | <td>{{obj.lblc}}</td> |
| 285 | <td>{{obj.ljlc}}</td> | 288 | <td>{{obj.ljlc}}</td> |
| 289 | + <td>{{obj.sjssgl}}</td> | ||
| 286 | <td>{{obj.yh}}</td> | 290 | <td>{{obj.yh}}</td> |
| 287 | <td>{{obj.bc}}</td> | 291 | <td>{{obj.bc}}</td> |
| 288 | <td>{{obj.carDay}}</td> | 292 | <td>{{obj.carDay}}</td> |
| @@ -290,7 +294,7 @@ | @@ -290,7 +294,7 @@ | ||
| 290 | {{/each}} | 294 | {{/each}} |
| 291 | {{if list.length == 0}} | 295 | {{if list.length == 0}} |
| 292 | <tr> | 296 | <tr> |
| 293 | - <td colspan="11"><h6 class="muted">没有找到相关数据</h6></td> | 297 | + <td colspan="12"><h6 class="muted">没有找到相关数据</h6></td> |
| 294 | </tr> | 298 | </tr> |
| 295 | {{/if}} | 299 | {{/if}} |
| 296 | </script> | 300 | </script> |
| 297 | \ No newline at end of file | 301 | \ No newline at end of file |
src/main/resources/static/pages/forms/statement/refuelDc.html
| @@ -62,7 +62,7 @@ | @@ -62,7 +62,7 @@ | ||
| 62 | <td>百公里电耗</td> | 62 | <td>百公里电耗</td> |
| 63 | <td>路单公里</td> | 63 | <td>路单公里</td> |
| 64 | <td>空驶公里</td> | 64 | <td>空驶公里</td> |
| 65 | - <td>损失公里</td> | 65 | + <td>实际损失公里</td> |
| 66 | <td>班次</td> | 66 | <td>班次</td> |
| 67 | <td>营运班次</td> | 67 | <td>营运班次</td> |
| 68 | <td>车日</td> | 68 | <td>车日</td> |
| @@ -232,7 +232,7 @@ | @@ -232,7 +232,7 @@ | ||
| 232 | <td></td> | 232 | <td></td> |
| 233 | <td>{{obj.realMileage}}</td> | 233 | <td>{{obj.realMileage}}</td> |
| 234 | <td>{{obj.ksMileage}}</td> | 234 | <td>{{obj.ksMileage}}</td> |
| 235 | - <td>{{obj.ssMileage}}</td> | 235 | + <td>{{obj.sjssgl}}</td> |
| 236 | <td>{{obj.bc}}</td> | 236 | <td>{{obj.bc}}</td> |
| 237 | <td>{{obj.yybc}}</td> | 237 | <td>{{obj.yybc}}</td> |
| 238 | <td>{{obj.cr}}</td> | 238 | <td>{{obj.cr}}</td> |