Browse Source

事故-事件

develop
wangsixiang 3 months ago
parent
commit
e9e1d8421a
  1. 4
      zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java
  2. 2
      zc-business/src/main/java/com/zc/business/service/IDcSdhsEventService.java
  3. 2
      zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java

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

@ -119,8 +119,8 @@ public class DcSdhsEventController {
}
return AjaxResult.success(dcSdhsEventService.accidentSectionAnalysis(dcSdhsEventQuery));
}
//事类型分析
@ApiOperation("查询事类型分析")
//事类型分析
@ApiOperation("查询事类型分析")
@PostMapping("/typeAnalysis")
public AjaxResult accidentTypeAnalysis(@RequestBody DcSdhsEventQuery dcSdhsEventQuery){
if (dcSdhsEventQuery.getStartTime()==null||dcSdhsEventQuery.getEndTime()==null){

2
zc-business/src/main/java/com/zc/business/service/IDcSdhsEventService.java

@ -33,7 +33,7 @@ public interface IDcSdhsEventService
//事故多发路段分析
public Map<String, Integer> accidentSectionAnalysis(DcSdhsEventQuery dcSdhsEventQuery);
//事类型分析
//事类型分析
public Map<String, Integer> accidentTypeAnalysis(DcSdhsEventQuery dcSdhsEventQuery);
//事故拥堵地点
public Map<String,Integer> accidentCongestedLocation(DcSdhsEventQuery dcSdhsEventQuery);

2
zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java

@ -251,7 +251,7 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService {
}
return groupCountMap;
}
//事类型分析
//事类型分析
@Override
public Map<String, Integer> accidentTypeAnalysis(DcSdhsEventQuery dcSdhsEventQuery) {
List<DcSdhsEvent> cacheList = redisCache.getCacheList(RedisKeyConstants.SDHS_EVENT);

Loading…
Cancel
Save