选煤厂生产管理平台后台代码
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.CoalAnalysisFullDetDTO;
6 import com.iailab.module.pms.coalquality.modules.analysis.service.CoalAnalysisFullDetService;
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.GetMapping;
11 import org.springframework.web.bind.annotation.PathVariable;
12 import org.springframework.web.bind.annotation.RequestMapping;
13 import org.springframework.web.bind.annotation.RestController;
14
15 import java.util.HashMap;
16 import java.util.List;
17 import java.util.Map;
18
19 import static com.iailab.framework.common.pojo.CommonResult.success;
20
21 /**
22  * @author PanZhibao
23  * @Description
24  * @createTime 2023年01月15日 14:52:00
25  */
26 @RestController
e16f4e 27 @RequestMapping("/xmcpms/analysis/full-det")
7e21bc 28 @Tag(name="全级浮沉实验数据")
J 29 public class CoalAnalysisFullDetController {
30
31     @Autowired
32     private CoalAnalysisFullDetService coalAnalysisFullDetService;
33
34     @GetMapping("/list/{fullId}")
35     @Operation(summary = "信息")
36     public CommonResult<List<CoalAnalysisFullDetDTO>> list(@PathVariable("fullId") String fullId){
37         Map<String, Object> parmas = new HashMap<>(1);
38         parmas.put("fullId", fullId);
39         List<CoalAnalysisFullDetDTO> data = coalAnalysisFullDetService.queryList(parmas);
40         return success(data);
41     }
42
43 }