Commit 8b8c6000826d6cb85da095c475388047210eaa3c
1 parent
dd9769e1
update
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| @@ -311,7 +311,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | @@ -311,7 +311,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 311 | Cars car = carsRepository.findOne(new CustomerSpecs<Cars>(map)); | 311 | Cars car = carsRepository.findOne(new CustomerSpecs<Cars>(map)); |
| 312 | // 获取线路是否使用标识,如果未使用,则不查该线路数据 | 312 | // 获取线路是否使用标识,如果未使用,则不查该线路数据 |
| 313 | line = lineRepository.findByLineCode(schRealInfo.get("xlBm")+""); | 313 | line = lineRepository.findByLineCode(schRealInfo.get("xlBm")+""); |
| 314 | - if(line.getInUse() == null || line.getInUse() == 0){ | 314 | + if(line == null || line.getInUse() == null || line.getInUse() == 0){ |
| 315 | continue; | 315 | continue; |
| 316 | } | 316 | } |
| 317 | sf.append("<DLD>"); | 317 | sf.append("<DLD>"); |