|
@@ -7,9 +7,12 @@ import com.ruoyi.common.core.web.controller.BaseController;
|
|
|
import com.ruoyi.common.security.utils.SecurityUtils;
|
|
|
import com.ruoyi.system.api.RemoteDeptService;
|
|
|
import com.sooka.sponest.event.centereventteventcatalogue.domain.bo.AppEventSalBO;
|
|
|
+import com.sooka.sponest.event.centereventteventcatalogue.domain.bo.VisuForestCloudTodayEventsBO;
|
|
|
import com.sooka.sponest.event.centereventteventcatalogue.domain.vo.AppEventSalVO;
|
|
|
import com.sooka.sponest.event.centereventteventcatalogue.domain.vo.VisuForestCloudMapVO;
|
|
|
import com.sooka.sponest.event.centereventteventcatalogue.service.ICenterEventAppService;
|
|
|
+import com.sooka.sponest.event.centereventteventcatalogue.service.ICenterEventReportService;
|
|
|
+import com.sooka.sponest.event.centereventteventcatalogue.service.ICenterEventViewService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -30,6 +33,12 @@ public class CenterEventAppController extends BaseController {
|
|
|
@Autowired
|
|
|
private ICenterEventAppService centerEventAppService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ICenterEventReportService centerEventReportService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ICenterEventViewService centerEventViewService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询事件目录列表
|
|
|
*/
|
|
@@ -67,4 +76,17 @@ public class CenterEventAppController extends BaseController {
|
|
|
public R getEventCountGroupByEventType(@RequestBody VisuForestCloudMapVO visuForestCloudMapVO) {
|
|
|
return R.ok(centerEventAppService.getEventCountGroupByEventType(visuForestCloudMapVO));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("设备上报事件数量")
|
|
|
+ @PostMapping("/getAIEventNum")
|
|
|
+ public R getAIEventNum(@RequestBody VisuForestCloudMapVO visuForestCloudMapVO) {
|
|
|
+ return R.ok(centerEventReportService.getAIEventCountGroupByReportor(visuForestCloudMapVO));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("事件各状态数、各来源数,入参需传日期 day = 2025-01-01")
|
|
|
+ @PostMapping("/selectTodayEvents")
|
|
|
+ public R<VisuForestCloudTodayEventsBO> selectTodayEvents(@RequestBody VisuForestCloudMapVO visuForestCloudMapVO) {
|
|
|
+ visuForestCloudMapVO.setIsHgj("false");
|
|
|
+ return R.ok(centerEventViewService.selectTodayEvents(visuForestCloudMapVO));
|
|
|
+ }
|
|
|
}
|