| | |
| | | */ |
| | | public boolean getPointOperation(LocalTime localTime, XpPoint xpPoint){ |
| | | if(xpPoint.getOperationStatus() == 2 && xpPoint.getVerificationStatus() == 5){ |
| | | if(xpPoint.getOperationType()==2){//运营类型 1=与运营区同步 2=自定义时间段 |
| | | return getPointOperation(localTime,xpPoint.getEffectivePeriod(),xpPoint.getEffectiveTimePeriod()); |
| | | }else { |
| | | if (xpPoint.getStationId() == null) {//调用围栏运营策略 |
| | | return getFenceOperation(localTime, xpPoint.getFenceOperationStrategy()); |
| | | } else { |
| | | return this.getStationOperation(localTime, xpPoint.getStationOperationType(), xpPoint.getStationEffectivePeriod(), xpPoint.getStationEffectiveTimePeriod(), xpPoint.getFenceOperationStrategy()); |
| | | if(xpPoint.getOperationType() != null){ |
| | | if(xpPoint.getOperationType()==2){//运营类型 1=与运营区同步 2=自定义时间段 |
| | | return getPointOperation(localTime,xpPoint.getEffectivePeriod(),xpPoint.getEffectiveTimePeriod()); |
| | | }else { |
| | | if (xpPoint.getStationId() == null) {//调用围栏运营策略 |
| | | return getFenceOperation(localTime, xpPoint.getFenceOperationStrategy()); |
| | | } else { |
| | | return this.getStationOperation(localTime, xpPoint.getStationOperationType(), xpPoint.getStationEffectivePeriod(), xpPoint.getStationEffectiveTimePeriod(), xpPoint.getFenceOperationStrategy()); |
| | | } |
| | | } |
| | | } |
| | | } |