选煤厂生产管理平台后台代码
Jay
6 天以前 8d3ff63ab144ad6b48015b01196bc901944a48f9
提交 | 用户 | 时间
7e21bc 1 package com.iailab.module.pms.coalquality.modules.detection.controller.admin;
J 2
3 import com.iailab.framework.common.pojo.CommonResult;
4 import com.iailab.module.pms.coalquality.modules.detection.dto.QualityQuickItemDTO;
5 import com.iailab.module.pms.coalquality.modules.detection.service.QualityQuickItemService;
6 import io.swagger.v3.oas.annotations.Operation;
7 import io.swagger.v3.oas.annotations.tags.Tag;
8 import lombok.extern.slf4j.Slf4j;
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 DongYukun
23  * @Description
24  * @createTime 2023年12月27日 9:53:00
25  */
26 @Slf4j
27 @RestController
8d3ff6 28 @RequestMapping("/coal-quality/quality/quick/item")
7e21bc 29 @Tag(name = "生产快检详情")
J 30 public class QualityQuickItemController {
31     @Autowired
32     private QualityQuickItemService qualityQuickItemService;
33
34     @GetMapping("/list/{lsh}")
35     @Operation(summary ="信息")
36     public CommonResult<List<QualityQuickItemDTO>> list(@PathVariable("lsh") String lsh){
37         Map<String, Object> parmas = new HashMap<>(1);
38         parmas.put("lsh", lsh);
39         List<QualityQuickItemDTO> data = qualityQuickItemService.queryList(parmas);
40         return success(data);
41     }
42
43 }