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,7 +593,8 @@ public class CulateMileageServiceImpl implements CulateMileageService{ | ||
| 593 | while (it.hasNext()) { | 593 | while (it.hasNext()) { |
| 594 | ChildTaskPlan childTaskPlan = it.next(); | 594 | ChildTaskPlan childTaskPlan = it.next(); |
| 595 | if (childTaskPlan.getMileageType().equals("service") | 595 | if (childTaskPlan.getMileageType().equals("service") |
| 596 | - && "正常".equals(childTaskPlan.getType1())) { | 596 | + && "正常".equals(childTaskPlan.getType1()) |
| 597 | + && childTaskPlan.getCcId()==null) { | ||
| 597 | if (!childTaskPlan.isDestroy()) { | 598 | if (!childTaskPlan.isDestroy()) { |
| 598 | Float jhgl = childTaskPlan.getMileage() == null ? 0 | 599 | Float jhgl = childTaskPlan.getMileage() == null ? 0 |
| 599 | : childTaskPlan.getMileage(); | 600 | : childTaskPlan.getMileage(); |
| @@ -769,7 +770,8 @@ public class CulateMileageServiceImpl implements CulateMileageService{ | @@ -769,7 +770,8 @@ public class CulateMileageServiceImpl implements CulateMileageService{ | ||
| 769 | xxkzgf=0,xxkwgf=0,xxm=0,xxmzgf=0,xxmwgf=0; | 770 | xxkzgf=0,xxkwgf=0,xxm=0,xxmzgf=0,xxmwgf=0; |
| 770 | for (int i = 0; i < lists.size(); i++) { | 771 | for (int i = 0; i < lists.size(); i++) { |
| 771 | ScheduleRealInfo s=lists.get(i); | 772 | ScheduleRealInfo s=lists.get(i); |
| 772 | - if(s.getFcsjActual()!=null){ | 773 | + if(s.getFcsjActual()!=null && !s.isCcService() |
| 774 | + && !isInOut(s)){ | ||
| 773 | String xlDir=s.getXlDir(); | 775 | String xlDir=s.getXlDir(); |
| 774 | String fcsjs=s.getFcsj(); | 776 | String fcsjs=s.getFcsj(); |
| 775 | String[] fcsjStr = fcsjs.split(":"); | 777 | String[] fcsjStr = fcsjs.split(":"); |
| @@ -779,7 +781,6 @@ public class CulateMileageServiceImpl implements CulateMileageService{ | @@ -779,7 +781,6 @@ public class CulateMileageServiceImpl implements CulateMileageService{ | ||
| 779 | long fcsjActual = Long.parseLong(fcsjActualsStr[0]) * 60 + Long.parseLong(fcsjActualsStr[1]); | 781 | long fcsjActual = Long.parseLong(fcsjActualsStr[0]) * 60 + Long.parseLong(fcsjActualsStr[1]); |
| 780 | 782 | ||
| 781 | if("0".equals(xlDir)){ | 783 | if("0".equals(xlDir)){ |
| 782 | - | ||
| 783 | if(fcsj-fcsjActual>1){ | 784 | if(fcsj-fcsjActual>1){ |
| 784 | sxk++; | 785 | sxk++; |
| 785 | if(fcsj>zgf1&&fcsj<zgf2) | 786 | if(fcsj>zgf1&&fcsj<zgf2) |
src/main/java/com/bsth/service/report/impl/SheetServiceImpl.java
| @@ -80,6 +80,9 @@ public class SheetServiceImpl extends BaseServiceImpl<Sheet, Integer> implements | @@ -80,6 +80,9 @@ public class SheetServiceImpl extends BaseServiceImpl<Sheet, Integer> implements | ||
| 80 | if(s.getBcType().equals("ldks")){ | 80 | if(s.getBcType().equals("ldks")){ |
| 81 | fage=true; | 81 | fage=true; |
| 82 | } | 82 | } |
| 83 | + if(s.isCcService()){ | ||
| 84 | + fage=true; | ||
| 85 | + } | ||
| 83 | 86 | ||
| 84 | return fage; | 87 | return fage; |
| 85 | } | 88 | } |