自动化立体仓库 - WMS系统
skyouc
3 天以前 7bac1f667a08787ce3f1ec722167ea96ad6332f1
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
package com.zy.api.controller;
 
import com.core.common.R;
import com.zy.api.entity.CallAgvParams;
import com.zy.api.enums.OrderType;
import com.zy.api.service.AgvScheduleService;
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;
 
@RestController
@RequestMapping("/hlk")
public class AgvScheduleController {
 
    @Autowired
    private AgvScheduleService agvScheduleService;
 
    /**
     * @author Ryan
     * @date 2025/11/3
     * @description: 呼叫AGV搬运缓存区/EO/SO
     * @version 1.0
     */
    @ApiOperation("呼叫AGV搬运")
    @PostMapping("/call/carry")
    public R callAgvCarry(@RequestBody CallAgvParams params) {
        if (Objects.isNull(params)) {
            return R.error("参数不能为空!!");
        }
        if (Objects.isNull(params.getType())) {
            return R.ok("搬运类型不能为空!!");
        }
        return agvScheduleService.callAgvCarry(params);
    }
}