package com.project.admin.controller.report; import com.project.common.core.controller.BaseController; import com.project.common.core.domain.AjaxResult; import com.project.report.service.IReportService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @Slf4j @Api(value = "报表管理", tags = "报表管理") @RequiredArgsConstructor @RestController @RequestMapping("/report/team") public class ReportController extends BaseController { private final IReportService reportService; @ApiOperation("执法汇总数据") @GetMapping("/getTotalInfo") public AjaxResult getTotalInfo() { return AjaxResult.success(reportService.getTotalInfo()); } @ApiOperation("执法次数月度分布") @GetMapping("/getMonthCount") public AjaxResult getMonthCount(Long deptId) { return AjaxResult.success(reportService.getMonthCount(deptId)); } @ApiOperation("执法次数部门分布") @GetMapping("/getDeptCount") public AjaxResult getDeptCount(String yearMonth) { return AjaxResult.success(reportService.getDeptCount(yearMonth)); } }