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
package com.ruoyi.report.controller;
 
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.report.dto.NormalDistributionDto;
import com.ruoyi.report.service.NormalDistributionService;
import com.ruoyi.report.vo.NormalDistributionVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
 
import javax.servlet.http.HttpServletResponse;
 
/**
 * 正态分布图控制器
 */
@RequestMapping("/chart/normalDistribution")
@RestController
@AllArgsConstructor
@Api(tags = "正态分布图")
public class NormalDistributionController {
 
    private NormalDistributionService normalDistributionService;
 
    /**
     * 正态分布分析
     */
    @ApiOperation(value = "正态分布分析")
    @PostMapping("/analyze")
    public Result analyze(@RequestBody NormalDistributionDto dto) {
        return Result.success(normalDistributionService.analyze(dto));
    }
 
    /**
     * 导出分析数据
     */
    @ApiOperation(value = "导出分析数据")
    @GetMapping("/export")
    public void export(NormalDistributionDto dto, HttpServletResponse response) {
        normalDistributionService.export(dto, response);
    }
 
    /**
     * 查询可选检测项
     */
    @ApiOperation(value = "查询可选检测项")
    @GetMapping("/itemNames")
    public Result getItemNames(NormalDistributionDto dto) {
        return Result.success(normalDistributionService.getItemNames(dto));
    }
 
    /**
     * 查询可选样品名称列表
     */
    @ApiOperation(value = "查询可选样品名称列表")
    @GetMapping("/projectList")
    public Result getProjectList(NormalDistributionDto dto) {
        return Result.success(normalDistributionService.getSampleNames(dto));
    }
 
}