From d015cc0b48ca51a2b93b6c60c91dc352a104b1e7 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: 星期一, 23 九月 2024 10:41:50 +0800
Subject: [PATCH] 删除密码加密

---
 incident-manage/incident-manage-service/src/main/java/com/gkhy/safePlatform/incidentManage/controller/AccidentCountController.java |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/incident-manage/incident-manage-service/src/main/java/com/gkhy/safePlatform/incidentManage/controller/AccidentCountController.java b/incident-manage/incident-manage-service/src/main/java/com/gkhy/safePlatform/incidentManage/controller/AccidentCountController.java
index 8086ba2..effc382 100644
--- a/incident-manage/incident-manage-service/src/main/java/com/gkhy/safePlatform/incidentManage/controller/AccidentCountController.java
+++ b/incident-manage/incident-manage-service/src/main/java/com/gkhy/safePlatform/incidentManage/controller/AccidentCountController.java
@@ -1,8 +1,13 @@
 package com.gkhy.safePlatform.incidentManage.controller;
 
+import com.gkhy.safePlatform.commons.enums.ResultCodes;
 import com.gkhy.safePlatform.commons.vo.ResultVO;
 import com.gkhy.safePlatform.incidentManage.model.dto.resp.AccidentReportCountRespDTO;
+import com.gkhy.safePlatform.incidentManage.model.dto.resp.AccidentStatisticDTO;
+import com.gkhy.safePlatform.incidentManage.model.dto.resp.StatisticsDepLevelMonthAccidentRespDTO;
+import com.gkhy.safePlatform.incidentManage.model.dto.resp.StatisticsDeptLevelYearAccidentRespDTO;
 import com.gkhy.safePlatform.incidentManage.query.AccidentReportCountQuery;
+import com.gkhy.safePlatform.incidentManage.query.IncidentManageCountQuery;
 import com.gkhy.safePlatform.incidentManage.rpc.api.model.dto.req.IncidentManageCountRPCReq;
 import com.gkhy.safePlatform.incidentManage.rpc.api.model.dto.resp.IncidentManageRPCResp;
 import com.gkhy.safePlatform.incidentManage.service.AccidentCountService;
@@ -43,4 +48,29 @@
         return accidentCountService.getCountByDeptIds(query);
     }
 
+    @RequestMapping(value = "/getCountByDeptIdAndMonth/count",method = RequestMethod.POST)
+    public StatisticsDepLevelMonthAccidentRespDTO getCountByDeptIdAndMonth(@RequestBody IncidentManageCountQuery query){
+        return accidentCountService.getCountByDeptIdAndMonth(query);
+    }
+    @RequestMapping(value = "/getCountByDeptIdAndYear/count",method = RequestMethod.POST)
+    public StatisticsDeptLevelYearAccidentRespDTO getCountByDeptIdAndYear(@RequestBody IncidentManageCountQuery query){
+        return accidentCountService.getCountByDeptIdAndYear(query);
+    }
+
+    @RequestMapping(value = "/getCountByDeptIdsAndMonth/count",method = RequestMethod.POST)
+    public List<StatisticsDepLevelMonthAccidentRespDTO> getCountByDeptIdsAndMonth(@RequestBody IncidentManageCountQuery query){
+        return accidentCountService.getCountByDeptIdsAndMonth(query);
+    }
+    @RequestMapping(value = "/getCountByDeptIdsAndYear/count",method = RequestMethod.POST)
+    public List<StatisticsDeptLevelYearAccidentRespDTO> getCountByDeptIdsAndYear(@RequestBody IncidentManageCountQuery query){
+        return accidentCountService.getCountByDeptIdsAndYear(query);
+    }
+    /**
+     * 事故统计,根据事故级别统计
+     */
+    @RequestMapping(value = "/accidentGrade/count",method = RequestMethod.GET)
+    public ResultVO getCountByAccidentGrade(Integer year, Integer month){
+        return new ResultVO<>(ResultCodes.OK,accidentCountService.getCountByAccidentGrade(year, month));
+    }
+
 }

--
Gitblit v1.9.2