| | |
| | | import com.vincent.rsf.server.api.service.WcsService; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | 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; |
| | |
| | | @Autowired |
| | | private WcsService wcsService; |
| | | |
| | | // @ApiOperation(value = "wcs生成入库任务接口") |
| | | @ApiOperation(value = "wcs生成入库任务接口") |
| | | @PostMapping("/create/in/task") |
| | | public R createInTask(@RequestBody TaskInParam param) { |
| | | if (Cools.isEmpty(param.getIoType())) { |
| | |
| | | |
| | | } |
| | | |
| | | @ApiOperation(value = "agv取货完成接口") |
| | | @PostMapping("/agv/pickUp/complete") |
| | | public R AgvTaskPickUpComplete(@RequestBody TaskInParam param) { |
| | | if (Cools.isEmpty(param.getIoType())) { |
| | | return R.error("入出库类型不能为空"); |
| | | } |
| | | if (Cools.isEmpty(param.getSourceStaNo())) { |
| | | return R.error("源站编号不能为空"); |
| | | } |
| | | if (Cools.isEmpty(param.getBarcode())) { |
| | | return R.error("条码不能为空"); |
| | | } |
| | | if (param.getIoType().equals(TaskType.TASK_TYPE_AGV_IN.type)) { |
| | | return R.error("入库类型有误"); |
| | | } |
| | | wcsService.agvTaskPickUpComplete(param); |
| | | |
| | | return R.ok(); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |