Commit 3eaea7a9e6b41053fe31ee72e5cc4257c2b47934
1 parent
bfa472d9
update...
Showing
2 changed files
with
4 additions
and
0 deletions
src/main/java/com/bsth/data/basic/bus/BusDataBuffer.java
| @@ -162,6 +162,8 @@ public class BusDataBuffer implements CommandLineRunner { | @@ -162,6 +162,8 @@ public class BusDataBuffer implements CommandLineRunner { | ||
| 162 | for(Bus b : tempList) | 162 | for(Bus b : tempList) |
| 163 | idMapsCopy.put(b.getNbbm(), b); | 163 | idMapsCopy.put(b.getNbbm(), b); |
| 164 | 164 | ||
| 165 | + if(tempList.size() == 0) | ||
| 166 | + return; | ||
| 165 | list = tempList; | 167 | list = tempList; |
| 166 | idMaps = idMapsCopy; | 168 | idMaps = idMapsCopy; |
| 167 | logger.info("车辆信息过滤," + list.size()); | 169 | logger.info("车辆信息过滤," + list.size()); |
src/main/java/com/bsth/data/basic/person/PersonDataBuffer.java
| @@ -112,6 +112,8 @@ public class PersonDataBuffer implements CommandLineRunner { | @@ -112,6 +112,8 @@ public class PersonDataBuffer implements CommandLineRunner { | ||
| 112 | for(Person p : tempList) | 112 | for(Person p : tempList) |
| 113 | idMapsCopy.put(p.getJobCode(), p); | 113 | idMapsCopy.put(p.getJobCode(), p); |
| 114 | 114 | ||
| 115 | + if(tempList.size() == 0) | ||
| 116 | + return; | ||
| 115 | list = tempList; | 117 | list = tempList; |
| 116 | idMaps = idMapsCopy; | 118 | idMaps = idMapsCopy; |
| 117 | logger.info("人员信息过滤," + list.size()); | 119 | logger.info("人员信息过滤," + list.size()); |