选煤厂生产管理平台后台代码
dongyukun
2024-12-11 e16f4e463a6a090798c189a78a4a8f08295d31a6
提交 | 用户 | 时间
7e21bc 1 package com.iailab.module.pms.coalquality.modules.analysis.controller.admin;
J 2
3
4 import com.iailab.framework.common.pojo.CommonResult;
5 import com.iailab.module.pms.coalquality.modules.analysis.dto.CoalWashCurvesChartDTO;
6 import com.iailab.module.pms.coalquality.modules.analysis.service.CoalWashCurvesChartService;
7 import io.swagger.v3.oas.annotations.Operation;
8 import io.swagger.v3.oas.annotations.tags.Tag;
9 import org.springframework.beans.factory.annotation.Autowired;
10 import org.springframework.web.bind.annotation.*;
11
12 import static com.iailab.framework.common.pojo.CommonResult.success;
13
14 /**
15  * @author PanZhibao
16  * @Description
17  * @createTime 2023年01月20日 09:56:00
18  */
19 @RestController
e16f4e 20 @RequestMapping("/xmcpms/coal-quality/analysis/wash-curves-chart")
7e21bc 21 @Tag(name="可选性曲线图")
J 22 public class CoalWashCurvesChartController {
23
24     @Autowired
25     private CoalWashCurvesChartService coalWashCurvesChartService;
26
27     @PostMapping("/draw")
28     @Operation(summary="绘制")
29     public CommonResult<CoalWashCurvesChartDTO> draw(@RequestBody CoalWashCurvesChartDTO dto) {
30         CoalWashCurvesChartDTO data = coalWashCurvesChartService.draw(dto);
31         return success(data);
32     }
33
34     @GetMapping("/get")
35     @Operation(summary="信息")
36     public CommonResult<CoalWashCurvesChartDTO> get(String curvesId){
37         CoalWashCurvesChartDTO data = coalWashCurvesChartService.getByCurvesId(curvesId);
38         return success(data);
39     }
40 }