|
|
@ -4,6 +4,7 @@ import com.ruoyi.common.config.RuoYiConfig; |
|
|
|
import com.ruoyi.common.core.controller.BaseController; |
|
|
|
import com.ruoyi.common.core.domain.AjaxResult; |
|
|
|
import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
import com.ruoyi.common.utils.StringUtils; |
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil; |
|
|
|
import com.zc.business.domain.DcSdhsEvent; |
|
|
|
import com.zc.business.domain.DcSdhsEventQuery; |
|
|
@ -258,6 +259,9 @@ public class DcSdhsEventController extends BaseController { |
|
|
|
@PostMapping("/accidentTimeAnalysis") |
|
|
|
@ApiOperation("事故时间分析") |
|
|
|
public AjaxResult accidentTimeAnalysis(@RequestBody DcSdhsEventQuery dcSdhsEventQuery){ |
|
|
|
if (StringUtils.isEmpty(dcSdhsEventQuery.getType()) || StringUtils.isEmpty(dcSdhsEventQuery.getThisTime()) || StringUtils.isEmpty(dcSdhsEventQuery.getLastTime())){ |
|
|
|
return AjaxResult.error("参数错误"); |
|
|
|
} |
|
|
|
return AjaxResult.success( dcSdhsEventService.accidentTimeAnalysis(dcSdhsEventQuery)); |
|
|
|
} |
|
|
|
/** |
|
|
@ -268,6 +272,9 @@ public class DcSdhsEventController extends BaseController { |
|
|
|
@PostMapping("/accidentModelAnalysis") |
|
|
|
@ApiOperation("事故车型分析") |
|
|
|
public AjaxResult accidentModelAnalysis(@RequestBody DcSdhsEventQuery dcSdhsEventQuery){ |
|
|
|
if (StringUtils.isEmpty(dcSdhsEventQuery.getType()) || StringUtils.isEmpty(dcSdhsEventQuery.getThisTime()) || StringUtils.isEmpty(dcSdhsEventQuery.getLastTime())){ |
|
|
|
return AjaxResult.error("参数错误"); |
|
|
|
} |
|
|
|
return AjaxResult.success( dcSdhsEventService.accidentModelAnalysis(dcSdhsEventQuery)); |
|
|
|
} /** |
|
|
|
* 收费站出入口分析 |
|
|
@ -277,6 +284,9 @@ public class DcSdhsEventController extends BaseController { |
|
|
|
@PostMapping("/TollBoothStatisticsList") |
|
|
|
@ApiOperation("收费站出入口分析") |
|
|
|
public AjaxResult TollBoothStatisticsList(@RequestBody DcSdhsEventQuery dcSdhsEventQuery){ |
|
|
|
if (StringUtils.isEmpty(dcSdhsEventQuery.getType()) || StringUtils.isEmpty(dcSdhsEventQuery.getThisTime()) || StringUtils.isEmpty(dcSdhsEventQuery.getLastTime())){ |
|
|
|
return AjaxResult.error("参数错误"); |
|
|
|
} |
|
|
|
return AjaxResult.success( dcSdhsEventService.TollBoothStatisticsList(dcSdhsEventQuery)); |
|
|
|
} |
|
|
|
|
|
|
@ -288,6 +298,9 @@ public class DcSdhsEventController extends BaseController { |
|
|
|
@PostMapping("/gantryAnalysis") |
|
|
|
@ApiOperation("门架分析") |
|
|
|
public AjaxResult gantryAnalysis(@RequestBody DcSdhsEventQuery dcSdhsEventQuery){ |
|
|
|
if (StringUtils.isEmpty(dcSdhsEventQuery.getType()) || StringUtils.isEmpty(dcSdhsEventQuery.getThisTime()) || StringUtils.isEmpty(dcSdhsEventQuery.getLastTime())){ |
|
|
|
return AjaxResult.error("参数错误"); |
|
|
|
} |
|
|
|
return AjaxResult.success( dcSdhsEventService.trafficFlowStatistics(dcSdhsEventQuery)); |
|
|
|
} |
|
|
|
|
|
|
|