zhoushihao
2024-12-03 c823892f961b266199731ddd365d2dd4af4bf382
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
package com.mes.hollowqueue.controller;
 
import com.mes.hollowqueue.entity.HollowGlassQueueInfo;
import com.mes.hollowqueue.service.HollowGlassQueueInfoService;
import com.mes.utils.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * (HollowGlassQueueInfo)表控制层
 *
 * @author makejava
 * @since 2024-11-30 10:19:53
 */
@RestController
@RequestMapping("hollowGlassQueueInfo")
public class HollowGlassQueueInfoController {
 
    @Resource
    HollowGlassQueueInfoService hollowGlassQueueInfoService;
 
    @ApiOperation("强制出片")
    @PostMapping("/forceOutGlass")
    public Result<String> forceOutGlass(String flowCardId, int cell, int totalPairQuantity) {
        hollowGlassQueueInfoService.forceOutGlass(flowCardId, cell, totalPairQuantity);
        return Result.success("success");
    }
 
    @ApiOperation("按照线路查询正在出片的玻璃队列")
    @PostMapping("/queryHollowGlassQueueInfo")
    public Result<List<HollowGlassQueueInfo>> queryHollowGlassQueueInfo(int cell) {
        return Result.success(hollowGlassQueueInfoService.queryHollowGlassQueueInfo(cell));
    }
}