liujie
2025-12-30 3beaeea9255b73a9da1e32a25af68d8fcf67cfaa
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
package com.ruoyi.web.controller.api;
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.query.DashboardStatisticsQuery;
import com.ruoyi.system.service.DashboardStatisticsService;
import com.ruoyi.system.vo.DashboardStatisticsVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * 数据统计面板 前端控制器
 *
 * @author xiaochen
 * @since 2025-12-23
 */
@RestController
@RequestMapping("/dashboard-statistics")
@Api(tags = "(嘉视达)数据统计面板")
@RequiredArgsConstructor(onConstructor_ = @Lazy)
public class DashboardStatisticsController {
 
    private final DashboardStatisticsService dashboardStatisticsService;
 
    @ApiOperation(value = "获取数据统计面板数据")
    @PostMapping("/overview")
    public R<DashboardStatisticsVO> getOverview(@RequestBody DashboardStatisticsQuery query) {
        return R.ok(dashboardStatisticsService.getStatistics(query));
    }
 
}