选煤厂生产管理平台后台代码
dongyukun
2024-12-11 e16f4e463a6a090798c189a78a4a8f08295d31a6
提交 | 用户 | 时间
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.iems.common.annotation.AutoDict;
5 import com.iailab.module.pms.coalquality.modules.detection.dto.QualityQuickItemDTO;
6 import com.iailab.module.pms.coalquality.modules.detection.service.QualityQuickItemService;
7 import io.swagger.v3.oas.annotations.Operation;
8 import io.swagger.v3.oas.annotations.tags.Tag;
9 import lombok.extern.slf4j.Slf4j;
10 import org.springframework.beans.factory.annotation.Autowired;
11 import org.springframework.web.bind.annotation.GetMapping;
12 import org.springframework.web.bind.annotation.PathVariable;
13 import org.springframework.web.bind.annotation.RequestMapping;
14 import org.springframework.web.bind.annotation.RestController;
15
16 import java.util.HashMap;
17 import java.util.List;
18 import java.util.Map;
19
20 import static com.iailab.framework.common.pojo.CommonResult.success;
21
22 /**
23  * @author DongYukun
24  * @Description
25  * @createTime 2023年12月27日 9:53:00
26  */
27 @Slf4j
28 @RestController
e16f4e 29 @RequestMapping("/xmcpms/quality/quick/item")
7e21bc 30 @Tag(name = "生产快检详情")
J 31 public class QualityQuickItemController {
32     @Autowired
33     private QualityQuickItemService qualityQuickItemService;
34
35     @GetMapping("/list/{lsh}")
36     @Operation(summary ="信息")
37     @AutoDict
38     public CommonResult<List<QualityQuickItemDTO>> list(@PathVariable("lsh") String lsh){
39         Map<String, Object> parmas = new HashMap<>(1);
40         parmas.put("lsh", lsh);
41         List<QualityQuickItemDTO> data = qualityQuickItemService.queryList(parmas);
42         return success(data);
43     }
44
45 }