自动化立体仓库 - WMS系统
skyouc
1 天以前 38c31f313d2ee50c83e77559684b9ebc1e39b903
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
package com.zy.api.controller;
 
 
import com.core.annotations.ManagerAuth;
import com.core.common.R;
import com.zy.api.controller.params.ReceviceTaskParams;
import com.zy.api.service.WcsApiService;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.Objects;
 
@Api("WCS交互接口")
@RequestMapping("/wcs")
@RestController
public class WcsApiController {
 
    @Autowired
    private WcsApiService wcsApiService;
 
    /**
     * 通知WCS锁定周边库位,及禁止任务执行
     * @author Ryan
     * @date 2026/1/10 11:13
     * @return com.core.common.R
     */
    @ManagerAuth
    @ApiOperation("锁定机台周边库位执行任务")
    @PostMapping("/lock/locs")
    public R reportLockLocs(@RequestBody ReceviceTaskParams params) {
        if (Objects.isNull(params)) {
            return R.error("参数不能为空!!");
        }
        if (Objects.isNull(params.getDeviceNo())) {
            return R.error("机台号不能为空!!");
        }
 
        return wcsApiService.lockLocs(params);
 
    }
}