| | |
| | | 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; |
| | |
| | | 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)); |
| | | } |
| | | |
| | | } |