Commit 5b2e2efe66c7ce989e0829f8e0c0a19bc1ac9729
1 parent
87fccda1
fix: 修改线路无人员还显示状态
Showing
1 changed file
with
3 additions
and
0 deletions
Bsth-admin/src/main/java/com/ruoyi/service/impl/BigViewServiceImpl.java
| ... | ... | @@ -366,6 +366,9 @@ public class BigViewServiceImpl implements BigViewService { |
| 366 | 366 | lineInfos.add(lineInfo); |
| 367 | 367 | } |
| 368 | 368 | } |
| 369 | + if (CollectionUtil.isEmpty(lineInfos)){ | |
| 370 | + continue; | |
| 371 | + } | |
| 369 | 372 | lineInfos.sort(Comparator.comparing(LineInfo::getNbbm).reversed()); |
| 370 | 373 | fleetInfo.setLineInfos(lineInfos); |
| 371 | 374 | fleetInfos.add(fleetInfo); | ... | ... |