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