| | |
| | | |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.resp.AccidentReportCountRespDTO; |
| | | 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; |
| | |
| | | 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); |
| | | } |
| | | } |