ZQN
2024-06-19 d21773b0d86197d133ef4b16fe366232c345c665
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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));
    }
 
}