Commit 2f9b4e8fd0c008c99678b4d0638bf1a6257cf5b9
1 parent
73ea71bc
统计日报标红逻辑改为以总公里计算且以日期划分;
Showing
2 changed files
with
7 additions
and
5 deletions
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| ... | ... | @@ -2932,7 +2932,8 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 2932 | 2932 | double ljks=culateService.culateLjksgl(lists); |
| 2933 | 2933 | double zrwJcc = culateService.culateZrwJccLc(lists, "all"); // 子任务进出场 |
| 2934 | 2934 | double zrwKfks = culateService.culateZrwKfks(lists); // 子任务空放空驶 |
| 2935 | - map.put("ljks", Arith.add(Arith.add(ljks, zrwJcc), zrwKfks)); // 202508根据工单需求添加“临加空驶”中而外算上子任务进出场公里。 | |
| 2935 | + double ljks_2508 = Arith.add(Arith.add(ljks, zrwJcc), zrwKfks); | |
| 2936 | + map.put("ljks", ljks_2508); // 202508根据工单需求添加“临加空驶”中而外算上子任务进出场公里。 | |
| 2936 | 2937 | double ljgl = culateService.culateLjgl(lists); |
| 2937 | 2938 | double sjyygl = culateService.culateSjgl(lists); |
| 2938 | 2939 | double zyygl = Arith.add(sjyygl, ljgl); |
| ... | ... | @@ -2956,7 +2957,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 2956 | 2957 | // } else { |
| 2957 | 2958 | // map.put("zt", 1); |
| 2958 | 2959 | // } |
| 2959 | - double jl = Arith.sub(Arith.sub(Arith.add(Arith.add(jhzlc, ljgl), ljks), ssgl), ssksgl); // 202508工单需求,以总公里和日期计算是否标红。 | |
| 2960 | + double jl = Arith.sub(Arith.sub(Arith.add(Arith.add(jhzlc, ljgl), ljks_2508), ssgl), ssksgl); // 202508工单需求,以总公里和日期计算是否标红。 | |
| 2960 | 2961 | if (jl == sjzgl) { |
| 2961 | 2962 | map.put("zt", 0); |
| 2962 | 2963 | } else { |
| ... | ... | @@ -3340,7 +3341,8 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 3340 | 3341 | double ljks=culateService.culateLjksgl(list_s); |
| 3341 | 3342 | double zrwJcc = culateService.culateZrwJccLc(list_s, "all"); // 子任务进出场 |
| 3342 | 3343 | double zrwKfks = culateService.culateZrwKfks(list_s); // 子任务空放空驶 |
| 3343 | - map.put("ljks", Arith.add(Arith.add(ljks, zrwJcc), zrwKfks)); // 202508根据工单需求添加“临加空驶”中而外算上子任务进出场公里。 | |
| 3344 | + double ljks_2508 = Arith.add(Arith.add(ljks, zrwJcc), zrwKfks); | |
| 3345 | + map.put("ljks", ljks_2508); // 202508根据工单需求添加“临加空驶”中而外算上子任务进出场公里。 | |
| 3344 | 3346 | double sjjccgl = culateService.culateJccgl(list_s); |
| 3345 | 3347 | double sjksgl = culateService.culateKsgl(list_s); |
| 3346 | 3348 | double zksgl = Arith.add(sjjccgl, sjksgl); |
| ... | ... | @@ -3361,7 +3363,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 3361 | 3363 | // map.put("zt", 1); |
| 3362 | 3364 | // } |
| 3363 | 3365 | //计划总公里+临加总公里-少驶总公里=实驶总公里 |
| 3364 | - double jl = Arith.sub(Arith.sub(Arith.add(Arith.add(jhzlc, ljgl), ljks), ssgl), ssksgl); // 202508工单需求,以总公里和日期计算是否标红。 | |
| 3366 | + double jl = Arith.sub(Arith.sub(Arith.add(Arith.add(jhzlc, ljgl), ljks_2508), ssgl), ssksgl); // 202508工单需求,以总公里和日期计算是否标红。 | |
| 3365 | 3367 | if (jl == sjzgl) { |
| 3366 | 3368 | map.put("zt", 0); |
| 3367 | 3369 | } else { | ... | ... |
src/main/resources/static/pages/forms/statement/statisticsDaily.html