选煤厂生产管理平台后台代码
Jay
6 天以前 8d3ff63ab144ad6b48015b01196bc901944a48f9
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
package com.iailab.module.pms.coalquality.modules.detection.controller.admin;
 
import com.iailab.framework.common.pojo.CommonResult;
import com.iailab.module.pms.coalquality.modules.detection.dto.QualityQuickItemDTO;
import com.iailab.module.pms.coalquality.modules.detection.service.QualityQuickItemService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
import static com.iailab.framework.common.pojo.CommonResult.success;
 
/**
 * @author DongYukun
 * @Description
 * @createTime 2023年12月27日 9:53:00
 */
@Slf4j
@RestController
@RequestMapping("/coal-quality/quality/quick/item")
@Tag(name = "生产快检详情")
public class QualityQuickItemController {
    @Autowired
    private QualityQuickItemService qualityQuickItemService;
 
    @GetMapping("/list/{lsh}")
    @Operation(summary ="信息")
    public CommonResult<List<QualityQuickItemDTO>> list(@PathVariable("lsh") String lsh){
        Map<String, Object> parmas = new HashMap<>(1);
        parmas.put("lsh", lsh);
        List<QualityQuickItemDTO> data = qualityQuickItemService.queryList(parmas);
        return success(data);
    }
 
}