| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.video.common.constant.BaseCaseStatus; |
| | | import com.ycl.dto.trend.TrendAnalysisParam; |
| | | import com.ycl.entity.caseHandler.BaseCase; |
| | | import com.ycl.entity.caseHandler.Violations; |
| | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.function.Consumer; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | IBaseCaseService iBaseCaseService; |
| | | @Autowired |
| | | IViolationsService iViolationsService; |
| | | @Autowired |
| | | @Resource |
| | | TrendAnalysisMapper trendAnalysisMapper; |
| | | |
| | | @ApiOperation(value = "执法事件统计") |
| | |
| | | public CommonResult<Map<String, Object>> statistics(@Validated CockpitVO params) { |
| | | checkApiUtil.cockpit(params); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | EnforcementEventsVO.StatisticsEventVO eventVO = new EnforcementEventsVO.StatisticsEventVO(); |
| | | eventVO.setCount(10); |
| | | eventVO.setRatio(new BigDecimal("0.69").setScale(2, RoundingMode.HALF_UP)); |
| | | eventVO.setUp(true); |
| | | map.put("reported", eventVO); |
| | | map.put("disposition", eventVO); |
| | | map.put("dispositionInTime", eventVO); |
| | | map.put("register", eventVO); |
| | | return CommonResult.success(map); |
| | | // EnforcementEventsVO.StatisticsEventVO eventVO = new EnforcementEventsVO.StatisticsEventVO(); |
| | | // eventVO.setCount(10); |
| | | // eventVO.setRatio(new BigDecimal("0.69").setScale(2, RoundingMode.HALF_UP)); |
| | | // eventVO.setUp(true); |
| | | // iBaseCaseService.count(); |
| | | // map.put("reported", eventVO); |
| | | // map.put("disposition", eventVO); |
| | | // map.put("dispositionInTime", eventVO); |
| | | // map.put("register", eventVO); |
| | | return CommonResult.success(iBaseCaseService.statistics()); |
| | | } |
| | | |
| | | @ApiOperation(value = "事件类型") |