heheng
2025-11-26 5011ebf747ddfa41840b352c9e39cf369a8f047c
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
package com.gkhy.exam.admin.controller.web;
 
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.system.service.StatisticsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping("/system/statistics")
@Api(tags = "统计管理")
public class StatisticsController {
 
    @Autowired
    private StatisticsService statisticsService;
 
    @ApiOperation(value = "企业的基本情况")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = true, value = "公司id"),
            @ApiImplicitParam(paramType = "query", name = "year", dataType = "String", required = true, value = "年")
    })
    @GetMapping("/getCompanyStatistics")
    public CommonResult getCompanyStatistics(@RequestParam Integer companyId , @RequestParam String year){
        return CommonResult.success(statisticsService.getCompanyStatistics(companyId, year));
    }
 
}