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));
|
}
|
}
|