|
@ -8,7 +8,7 @@ import com.zc.business.constant.StakeMarkConstant; |
|
|
import com.zc.business.domain.*; |
|
|
import com.zc.business.domain.*; |
|
|
import com.zc.business.enums.*; |
|
|
import com.zc.business.enums.*; |
|
|
import com.zc.business.request.DcTrafficMetricsDataRequest; |
|
|
import com.zc.business.request.DcTrafficMetricsDataRequest; |
|
|
import com.zc.business.service.DcTrafficVolumeForecastService; |
|
|
import com.zc.business.service.IDcTrafficVolumeForecastService; |
|
|
import com.zc.business.utils.AlgorithmUtils; |
|
|
import com.zc.business.utils.AlgorithmUtils; |
|
|
import com.zc.business.utils.StakeMarkUtils; |
|
|
import com.zc.business.utils.StakeMarkUtils; |
|
|
import org.springframework.stereotype.Component; |
|
|
import org.springframework.stereotype.Component; |
|
@ -32,7 +32,7 @@ public class TrafficAnalysis { |
|
|
private RedisCache redisCache; |
|
|
private RedisCache redisCache; |
|
|
|
|
|
|
|
|
@Resource |
|
|
@Resource |
|
|
private DcTrafficVolumeForecastService dcTrafficVolumeForecastService; |
|
|
private IDcTrafficVolumeForecastService dcTrafficVolumeForecastService; |
|
|
|
|
|
|
|
|
// 使用ConcurrentHashMap来缓存路段ID和设计交通量,以提高并发性能和减少数据库访问
|
|
|
// 使用ConcurrentHashMap来缓存路段ID和设计交通量,以提高并发性能和减少数据库访问
|
|
|
private static final Map<Long, HashMap<Integer, Integer>> designTrafficVolumeCache = new HashMap<>(); |
|
|
private static final Map<Long, HashMap<Integer, Integer>> designTrafficVolumeCache = new HashMap<>(); |
|
|