Commit 740aeb3a57f174ad58c5d18068c03891f82901d1
1 parent
b272a5a4
排除子任务映射的主任务
Showing
2 changed files
with
6 additions
and
3 deletions
src/main/java/com/bsth/service/report/impl/CulateMileageServiceImpl.java
| ... | ... | @@ -593,7 +593,8 @@ public class CulateMileageServiceImpl implements CulateMileageService{ |
| 593 | 593 | while (it.hasNext()) { |
| 594 | 594 | ChildTaskPlan childTaskPlan = it.next(); |
| 595 | 595 | if (childTaskPlan.getMileageType().equals("service") |
| 596 | - && "正常".equals(childTaskPlan.getType1())) { | |
| 596 | + && "正常".equals(childTaskPlan.getType1()) | |
| 597 | + && childTaskPlan.getCcId()==null) { | |
| 597 | 598 | if (!childTaskPlan.isDestroy()) { |
| 598 | 599 | Float jhgl = childTaskPlan.getMileage() == null ? 0 |
| 599 | 600 | : childTaskPlan.getMileage(); |
| ... | ... | @@ -769,7 +770,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{ |
| 769 | 770 | xxkzgf=0,xxkwgf=0,xxm=0,xxmzgf=0,xxmwgf=0; |
| 770 | 771 | for (int i = 0; i < lists.size(); i++) { |
| 771 | 772 | ScheduleRealInfo s=lists.get(i); |
| 772 | - if(s.getFcsjActual()!=null){ | |
| 773 | + if(s.getFcsjActual()!=null && !s.isCcService()){ | |
| 773 | 774 | String xlDir=s.getXlDir(); |
| 774 | 775 | String fcsjs=s.getFcsj(); |
| 775 | 776 | String[] fcsjStr = fcsjs.split(":"); |
| ... | ... | @@ -779,7 +780,6 @@ public class CulateMileageServiceImpl implements CulateMileageService{ |
| 779 | 780 | long fcsjActual = Long.parseLong(fcsjActualsStr[0]) * 60 + Long.parseLong(fcsjActualsStr[1]); |
| 780 | 781 | |
| 781 | 782 | if("0".equals(xlDir)){ |
| 782 | - | |
| 783 | 783 | if(fcsj-fcsjActual>1){ |
| 784 | 784 | sxk++; |
| 785 | 785 | if(fcsj>zgf1&&fcsj<zgf2) | ... | ... |
src/main/java/com/bsth/service/report/impl/SheetServiceImpl.java