Commit b9361d3a828854445b9a7dc7b78b870f591d2a61
Merge branch 'minhang' of http://222.66.0.204:8090/panzhaov5/bsth_control into minhang
Showing
2 changed files
with
7 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,8 @@ 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() | |
| 774 | + && !isInOut(s)){ | |
| 773 | 775 | String xlDir=s.getXlDir(); |
| 774 | 776 | String fcsjs=s.getFcsj(); |
| 775 | 777 | String[] fcsjStr = fcsjs.split(":"); |
| ... | ... | @@ -779,7 +781,6 @@ public class CulateMileageServiceImpl implements CulateMileageService{ |
| 779 | 781 | long fcsjActual = Long.parseLong(fcsjActualsStr[0]) * 60 + Long.parseLong(fcsjActualsStr[1]); |
| 780 | 782 | |
| 781 | 783 | if("0".equals(xlDir)){ |
| 782 | - | |
| 783 | 784 | if(fcsj-fcsjActual>1){ |
| 784 | 785 | sxk++; |
| 785 | 786 | if(fcsj>zgf1&&fcsj<zgf2) | ... | ... |
src/main/java/com/bsth/service/report/impl/SheetServiceImpl.java