huminmin
2026-06-05 24019a8c1d8e78656e85b29ee7be223e0dd253a0
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.ruoyi.report.controller;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.report.dto.SampleProgressDto;
import com.ruoyi.report.service.SampleProgressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
 
import javax.servlet.http.HttpServletResponse;
import java.util.Map;
 
/**
 * 样品进度报表控制器
 */
@RequestMapping("/report/sampleProgress")
@RestController
@AllArgsConstructor
@Api(tags = "样品进度报表")
public class SampleProgressController {
 
    private SampleProgressService sampleProgressService;
 
    /**
     * 分页查询样品进度
     */
    @ApiOperation(value = "分页查询样品进度")
    @GetMapping("/page")
    public Result page(SampleProgressDto dto, Page page) {
        return Result.success(sampleProgressService.pageSampleProgress(page, dto));
    }
 
    /**
     * 查询样品进度统计
     */
    @ApiOperation(value = "查询样品进度统计")
    @GetMapping("/statistics")
    public Result statistics(SampleProgressDto dto) {
        return Result.success(sampleProgressService.getStatistics(dto));
    }
 
    /**
     * 导出样品进度报表
     */
    @ApiOperation(value = "导出样品进度报表")
    @GetMapping("/export")
    public void export(SampleProgressDto dto, HttpServletResponse response) {
        sampleProgressService.exportSampleProgress(dto, response);
    }
 
    /**
     * 查询进度可视化数据
     */
    @ApiOperation(value = "查询进度可视化数据")
    @GetMapping("/chart")
    public Result getChartData(SampleProgressDto dto) {
        return Result.success(sampleProgressService.getChartData(dto));
    }
 
}