| | |
| | | } |
| | | // 是否运营时间内 |
| | | if(xpElectronicFence.getFailureType() == 2){ |
| | | Boolean inOperationTime = isInOperationTime(operationStrategy); |
| | | if(!inOperationTime){ |
| | | JSONArray jsonArray = JSONArray.parseArray(operationStrategy); |
| | | if(!jsonArray.isEmpty()){ |
| | | Boolean inOperationTime = isInOperationTime(operationStrategy); |
| | | if(!inOperationTime){ |
| | | continue; |
| | | } |
| | | } |
| | | |
| | | if(LocalDateTime.now().isAfter(xpElectronicFence.getFailureTime())){ |
| | | continue; |
| | | } |
| | | |
| | | }else{ |
| | | //永不失效,需要判断开始时间是否到达 |
| | | if(LocalDateTime.now().isBefore(xpElectronicFence.getEffectTime())){ |