Commit d616f0a1294c523d8dff5d1ad472731b3406060e
1 parent
116c4aad
update...
Showing
1 changed file
with
3 additions
and
3 deletions
src/main/java/com/bsth/data/schedule/late_adjust/LateAdjustHandle.java
| ... | ... | @@ -15,8 +15,8 @@ import org.springframework.context.ApplicationContextAware; |
| 15 | 15 | import org.springframework.stereotype.Component; |
| 16 | 16 | |
| 17 | 17 | import java.util.Collection; |
| 18 | -import java.util.HashMap; | |
| 19 | -import java.util.Map; | |
| 18 | +import java.util.concurrent.ConcurrentHashMap; | |
| 19 | +import java.util.concurrent.ConcurrentMap; | |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * 误点自动调整待发 处理程序 |
| ... | ... | @@ -35,7 +35,7 @@ public class LateAdjustHandle implements ApplicationContextAware { |
| 35 | 35 | /** |
| 36 | 36 | * 应发未到的班次 key : id |
| 37 | 37 | */ |
| 38 | - private static Map<Long, ScheduleRealInfo> lateSchMap = new HashMap<>(); | |
| 38 | + private static ConcurrentMap<Long, ScheduleRealInfo> lateSchMap = new ConcurrentHashMap<>(); | |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | /** | ... | ... |