| | |
| | | package com.panzhihua.service_grid.api; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | 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; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | |
| | | |
| | | /** |
| | | * 后台管理-统计模块 |
| | | * @param communityId 社区id |
| | | * @return 统计信息 |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 统计信息 |
| | | */ |
| | | @GetMapping("/admin/eventStatistics") |
| | | public R eventStatistics(@RequestParam("communityId") Long communityId){ |
| | | public R eventStatistics(@RequestParam("communityId") Long communityId) { |
| | | return eventService.eventStatistics(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 后台管理-网格员统计 |
| | | * @param statisticsAdminDTO 请求参数 |
| | | * @return 网格员统计信息 |
| | | * |
| | | * @param statisticsAdminDTO |
| | | * 请求参数 |
| | | * @return 网格员统计信息 |
| | | */ |
| | | @PostMapping("/admin/gridMemberStatistics") |
| | | public R gridMemberStatistics(@RequestBody MemberStatisticsAdminDTO statisticsAdminDTO){ |
| | | public R gridMemberStatistics(@RequestBody MemberStatisticsAdminDTO statisticsAdminDTO) { |
| | | return eventService.gridMemberStatistics(statisticsAdminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 根据网格id查询网格统计数据 |
| | | * @param gridId 网格id |
| | | * @return 网格统计数据 |
| | | * |
| | | * @param gridId |
| | | * 网格id |
| | | * @return 网格统计数据 |
| | | */ |
| | | @PostMapping("/getGridEventStatistics") |
| | | public R getGridEventStatisticsByApp(@RequestParam("gridId") Long gridId,@RequestParam("userId") Long userId){ |
| | | return eventService.getGridEventStatisticsByApp(gridId,userId); |
| | | public R getGridEventStatisticsByApp(@RequestParam("gridId") Long gridId, @RequestParam("userId") Long userId) { |
| | | return eventService.getGridEventStatisticsByApp(gridId, userId); |
| | | } |
| | | |
| | | /** |
| | | * 查询网格事件统计数据 |
| | | * @param statisticsDTO 请求参数 |
| | | * @return 网格事件统计数据 |
| | | * |
| | | * @param statisticsDTO |
| | | * 请求参数 |
| | | * @return 网格事件统计数据 |
| | | */ |
| | | @PostMapping("/event/getGridEventStatistics") |
| | | public R getGridEventDetailStatisticsByApp(@RequestBody GridEventStatisticsDTO statisticsDTO){ |
| | | public R getGridEventDetailStatisticsByApp(@RequestBody GridEventStatisticsDTO statisticsDTO) { |
| | | return eventService.getGridEventDetailStatisticsByApp(statisticsDTO); |
| | | } |
| | | |
| | | /** |
| | | * 查询所有网格员工作汇总数据 |
| | | * @param statisticsAdminDTO 请求参数 |
| | | * @return 网格员工作汇总数据 |
| | | * |
| | | * @param statisticsAdminDTO |
| | | * 请求参数 |
| | | * @return 网格员工作汇总数据 |
| | | */ |
| | | @PostMapping("/admin/gridMemberStatisticsAll") |
| | | public R gridMemberStatisticsAll(@RequestBody MemberStatisticsAdminDTO statisticsAdminDTO){ |
| | | public R gridMemberStatisticsAll(@RequestBody MemberStatisticsAdminDTO statisticsAdminDTO) { |
| | | return eventService.gridMemberStatisticsAll(statisticsAdminDTO); |
| | | } |
| | | } |