| | |
| | | package com.panzhihua.service_grid.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.grid.GridEventStatisticsDTO; |
| | | import com.panzhihua.common.model.dtos.grid.MemberStatisticsAdminDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_grid.service.EventService; |
| | |
| | | public R gridMemberStatistics(@RequestBody MemberStatisticsAdminDTO statisticsAdminDTO){ |
| | | return eventService.gridMemberStatistics(statisticsAdminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 根据网格id查询网格统计数据 |
| | | * @param gridId 网格id |
| | | * @return 网格统计数据 |
| | | */ |
| | | @PostMapping("/getGridEventStatistics") |
| | | public R getGridEventStatisticsByApp(@RequestParam("gridId") Long gridId){ |
| | | return eventService.getGridEventStatisticsByApp(gridId); |
| | | } |
| | | |
| | | /** |
| | | * 查询网格事件统计数据 |
| | | * @param statisticsDTO 请求参数 |
| | | * @return 网格事件统计数据 |
| | | */ |
| | | @PostMapping("/event/getGridEventStatistics") |
| | | public R getGridEventDetailStatisticsByApp(@RequestBody GridEventStatisticsDTO statisticsDTO){ |
| | | return eventService.getGridEventDetailStatisticsByApp(statisticsDTO); |
| | | } |
| | | } |