| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.TaskDto; |
| | | import com.whyc.dto.WmsPalletDto; |
| | | import com.whyc.pojo.db_wms.Task; |
| | | import com.whyc.dto.*; |
| | | import com.whyc.service.WmsService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 下发入库任务 |
| | | * @param taskDto |
| | | * @return |
| | | */ |
| | | @PostMapping("sendTaskInbound") |
| | | public Response sendTaskInbound(@RequestBody WmsTaskDto taskDto){ |
| | | |
| | | return service.sendTaskInbound(taskDto); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 取消任务 |
| | | * @param stopDto |
| | | * @return |
| | | */ |
| | | @PostMapping("cancelTask") |
| | | public Response cancelTask(@RequestBody WmsTaskCancelDto cancelDto){ |
| | | |
| | | return service.cancelTask(cancelDto); |
| | | } |
| | | |
| | | /** |
| | | * 任务状态上报接口 |
| | | * TODO 待现场确认含义 API名称 上层系统提供 |
| | | */ |
| | |
| | | } |
| | | |
| | | @GetMapping("getPalletList") |
| | | public Response getPalletList(){ |
| | | public Response getPalletList(@RequestParam int MaterialType,@RequestParam int PalletStatus){ |
| | | |
| | | return service.getPalletList(); |
| | | return service.getPalletList(MaterialType,PalletStatus); |
| | | } |
| | | |
| | | /** |