Browse Source

类名重命名

develop
xiepufeng 8 months ago
parent
commit
f9de44862b
  1. 4
      zc-business/src/main/java/com/zc/business/controller/DcTrafficStatisticsController.java
  2. 2
      zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java
  3. 6
      zc-business/src/main/java/com/zc/business/service/IDcTrafficStatisticsService.java
  4. 2
      zc-business/src/main/java/com/zc/business/service/IDcTrafficVolumeForecastService.java
  5. 4
      zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java
  6. 4
      zc-business/src/main/java/com/zc/business/service/impl/DcTrafficVolumeForecastServiceImpl.java
  7. 4
      zc-business/src/main/java/com/zc/business/statistics/handler/TrafficAnalysis.java

4
zc-business/src/main/java/com/zc/business/controller/DcTrafficStatisticsController.java

@ -6,7 +6,7 @@ import com.zc.business.domain.DcTrafficMetricsData;
import com.zc.business.domain.DcTrafficSectionData;
import com.zc.business.request.DcTrafficMetricsDataRequest;
import com.zc.business.request.DcTrafficSectionDataRequest;
import com.zc.business.service.DcTrafficStatisticsService;
import com.zc.business.service.IDcTrafficStatisticsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
@ -25,7 +25,7 @@ import java.util.List;
public class DcTrafficStatisticsController {
@Autowired
private DcTrafficStatisticsService dcTrafficStatisticsService;
private IDcTrafficStatisticsService dcTrafficStatisticsService;
/**

2
zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

@ -53,7 +53,7 @@ public class DeviceMessageHandler {
private RedisCache redisCache;
@Resource
private DcTrafficStatisticsService dcTrafficSectionDataService;
private IDcTrafficStatisticsService dcTrafficSectionDataService;
@Autowired
private IDcMeteorologicalDetectorDataService meteorologicalDetectorDataService;

6
zc-business/src/main/java/com/zc/business/service/DcTrafficStatisticsService.java → zc-business/src/main/java/com/zc/business/service/IDcTrafficStatisticsService.java

@ -10,7 +10,11 @@ import com.zc.business.request.DcTrafficSectionDataRequest;
import java.util.List;
public interface DcTrafficStatisticsService extends IService<DcTrafficSectionData> {
/**
* 交通统计服务接口提供处理交通数据的相关方法
* @author xiepufeng
*/
public interface IDcTrafficStatisticsService extends IService<DcTrafficSectionData> {
/**
* 处理实时接收到的一类交流站设备消息并将其转换为交通断面统计数据对象并缓存

2
zc-business/src/main/java/com/zc/business/service/DcTrafficVolumeForecastService.java → zc-business/src/main/java/com/zc/business/service/IDcTrafficVolumeForecastService.java

@ -3,5 +3,5 @@ package com.zc.business.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zc.business.domain.DcTrafficVolumeForecast;
public interface DcTrafficVolumeForecastService extends IService<DcTrafficVolumeForecast> {
public interface IDcTrafficVolumeForecastService extends IService<DcTrafficVolumeForecast> {
}

4
zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java

@ -19,7 +19,7 @@ import com.zc.business.request.DcTrafficMetricsDataRequest;
import com.zc.business.request.DcTrafficSectionDataRequest;
import com.zc.business.statistics.cache.*;
import com.zc.business.mapper.DcTrafficSectionDataMapper;
import com.zc.business.service.DcTrafficStatisticsService;
import com.zc.business.service.IDcTrafficStatisticsService;
import com.zc.business.statistics.handler.TrafficAnalysis;
import com.zc.business.statistics.handler.TrafficStatistics;
import com.zc.business.utils.StakeMarkUtils;
@ -44,7 +44,7 @@ import java.util.stream.Collectors;
@Service
public class DcTrafficStatisticsServiceImpl
extends ServiceImpl<DcTrafficSectionDataMapper, DcTrafficSectionData>
implements DcTrafficStatisticsService {
implements IDcTrafficStatisticsService {
// 日志记录器
protected final Logger logger = LoggerFactory.getLogger(this.getClass());

4
zc-business/src/main/java/com/zc/business/service/impl/DcTrafficVolumeForecastServiceImpl.java

@ -3,7 +3,7 @@ package com.zc.business.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zc.business.domain.DcTrafficVolumeForecast;
import com.zc.business.mapper.DcTrafficVolumeForecastMapper;
import com.zc.business.service.DcTrafficVolumeForecastService;
import com.zc.business.service.IDcTrafficVolumeForecastService;
import org.springframework.stereotype.Service;
/**
@ -14,6 +14,6 @@ import org.springframework.stereotype.Service;
@Service
public class DcTrafficVolumeForecastServiceImpl
extends ServiceImpl<DcTrafficVolumeForecastMapper, DcTrafficVolumeForecast>
implements DcTrafficVolumeForecastService {
implements IDcTrafficVolumeForecastService {
}

4
zc-business/src/main/java/com/zc/business/statistics/handler/TrafficAnalysis.java

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

Loading…
Cancel
Save