| | |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.resp.AccidentReportCountRespDTO; |
| | | import com.gkhy.safePlatform.incidentManage.query.AccidentReportCountQuery; |
| | | 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; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return accidentCountService.countAccidentReport(query); |
| | | } |
| | | |
| | | /** |
| | | * 事故报告统计的rpc接口 |
| | | */ |
| | | @RequestMapping(value = "/getCountByDeptId/count",method = RequestMethod.POST) |
| | | public ResultVO<IncidentManageRPCResp> getCountByDeptId(@RequestBody IncidentManageCountRPCReq query){ |
| | | return accidentCountService.getCountByDeptId(query); |
| | | } |
| | | |
| | | /** |
| | | * 事故报告统计的rpc接口 |
| | | */ |
| | | @RequestMapping(value = "/getCountByDeptIds/count",method = RequestMethod.POST) |
| | | public ResultVO<List<IncidentManageRPCResp>> getCountByDeptIds(@RequestBody IncidentManageCountRPCReq query){ |
| | | return accidentCountService.getCountByDeptIds(query); |
| | | } |
| | | |
| | | } |