wang
2024-05-09 93e36c526fe445c14d5fb19f3653f8a8e55e3a6c
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
44
45
46
47
48
49
50
51
52
53
package com.mes.glassinfo.controller;
 
import com.mes.glassinfo.entity.GlassInfo;
import com.mes.glassinfo.service.GlassInfoService;
import com.mes.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author zhoush
 * @since 2024-04-07
 */
@Api(description = "玻璃信息小片")
@RestController
@RequestMapping("/glassInfo")
public class GlassInfoController {
 
    @Autowired
    private GlassInfoService glassInfoService;
 
    @ApiOperation("根据玻璃小片ID查询 玻璃数据:参数(玻璃ID)")
    @PostMapping("/selectId")
    @ResponseBody
    public Result selectId(String ProcessId) {
        List<GlassInfo> list = glassInfoService.selectId(ProcessId);
        return Result.build(200,"成功",list);
    }
    @ApiOperation("查询所有玻璃小片信息 玻璃数据   参数()")
    @PostMapping("/selectAll")
    @ResponseBody
    public Result selectAll() {
        List<GlassInfo> list = glassInfoService.selectAll();
        return Result.build(200,"成功",list);
    }
    @ApiOperation("查询工程下的玻璃小片信息 玻璃数据  参数(工程号)")
    @PostMapping("/selectFlowCardId")
    @ResponseBody
    public Result selectFlowCardId(String flowCardId) {
        List<GlassInfo> list = glassInfoService.selectFlowCardId(flowCardId);
        return Result.build(200,"成功",list);
    }
}