yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
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
package com.qianwen.smartman.modules.coproduction.controller;
 
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import java.util.List;
import com.qianwen.core.boot.ctrl.BladeController;
import com.qianwen.core.scanner.modular.annotation.GetResource;
import com.qianwen.core.scanner.modular.stereotype.ApiResource;
import com.qianwen.core.secure.annotation.PreAuth;
import com.qianwen.core.tool.api.R;
import com.qianwen.smartman.modules.coproduction.service.IOrderWorkstationService;
import com.qianwen.smartman.modules.cps.vo.WorkstationSingleVO;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@Api(value = "blade_order_workstation管理", tags = {"blade_order_workstation管理"})
@ApiResource({"blade-coproduction/order-workstation"})
@RestController
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/controller/OrderWorkstationController.class */
public class OrderWorkstationController extends BladeController {
    private final IOrderWorkstationService orderWorkstationService;
 
    public OrderWorkstationController(final IOrderWorkstationService orderWorkstationService) {
        this.orderWorkstationService = orderWorkstationService;
    }
 
    @ApiOperationSupport(order = 1)
    @GetResource({"/get-workstation-can-start"})
    @ApiOperation(value = "获得可开工的工位)", notes = "获得可开工的工位")
    @PreAuth
    public R<List<WorkstationSingleVO>> getWorkstationCanStart(@RequestParam("orderProcessId") @ApiParam("工单工序ID") String orderProcessId) {
        return R.data(this.orderWorkstationService.getWorkstationCanStart(Long.valueOf(orderProcessId)));
    }
}