|
|
@ -188,6 +188,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
@Override |
|
|
|
public Map<String, Integer> accidentSectionAnalysis(DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
|
List<DcSdhsEvent> cacheList = redisCache.getCacheList(RedisKeyConstants.SDHS_EVENT); |
|
|
|
if (cacheList == null || cacheList.size() == 0) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
Map<String, Integer> groupCountMap = new HashMap<>(); |
|
|
|
try { |
|
|
|
long startTimeMillis = dcSdhsEventQuery.getStartTime().getTime(); |
|
|
@ -252,6 +255,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
@Override |
|
|
|
public Map<String, Integer> accidentTypeAnalysis(DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
|
List<DcSdhsEvent> cacheList = redisCache.getCacheList(RedisKeyConstants.SDHS_EVENT); |
|
|
|
if (cacheList == null || cacheList.size() == 0) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
Map<String, Integer> groupCountMap = new HashMap<>(); |
|
|
|
try { |
|
|
|
long startTimeMillis = dcSdhsEventQuery.getStartTime().getTime(); |
|
|
@ -282,6 +288,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
@Override |
|
|
|
public Map<String, Integer> accidentCongestedLocation(DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
|
List<DcSdhsEvent> cacheList = redisCache.getCacheList(RedisKeyConstants.SDHS_EVENT); |
|
|
|
if (cacheList == null || cacheList.size() == 0) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
Map<String, Integer> groupCountMap = new HashMap<>(); |
|
|
|
try { |
|
|
|
long startTimeMillis = dcSdhsEventQuery.getStartTime().getTime(); |
|
|
@ -318,6 +327,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
@Override |
|
|
|
public Map<String, String> accidentCongestedTime(DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
|
List<DcSdhsEvent> cacheList = redisCache.getCacheList(RedisKeyConstants.SDHS_EVENT); |
|
|
|
if (cacheList == null || cacheList.size() == 0) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
Map<String, Integer> averageMap = new HashMap<>(); |
|
|
|
Map<String, Integer> map = new HashMap<>(); |
|
|
|
Map<String, String> groupCountMap = new HashMap<>(); |
|
|
|