whycxzp
2025-04-23 c330e65b8ea172fface685efaa8e9c2e8a7f9520
src/main/java/com/whyc/controller/InterfaceWmsController.java
@@ -1,7 +1,6 @@
package com.whyc.controller;
import com.whyc.dto.Response;
import com.whyc.dto.WmsPalletDto;
import com.whyc.dto.*;
import com.whyc.pojo.db_wms.Task;
import com.whyc.service.WmsService;
import io.swagger.annotations.Api;
@@ -40,6 +39,29 @@
    }
    /**
     * 下发入库任务
     * @param taskDto
     * @return
     */
    @PostMapping("sendTaskInbound")
    public Response sendTaskInbound(@RequestBody WmsTaskDto taskDto){
        return service.sendTaskInbound(taskDto);
    }
    /**
     * 取消任务
     * @param stopDto
     * @return
     */
    @PostMapping("stopTask")
    public Response stopTask(@RequestBody WmsTaskStopDto stopDto){
        return service.stopTask(stopDto);
    }
    /**
     * 任务状态上报接口
     * TODO 待现场确认含义 API名称   上层系统提供
     */
@@ -56,19 +78,29 @@
    }
    @GetMapping("getPalletList")
    public Response getPalletList(){
    public Response getPalletList(@RequestParam int MaterialType,@RequestParam int PalletStatus){
        return service.getPalletList();
        return service.getPalletList(MaterialType,PalletStatus);
    }
    /**
     * 提供给第三方的接口,用于接收任务状态
     * @param task
     * @param taskDto
     * @return
     */
    @PostMapping("sendTaskStatus")
    public Response sendTaskStatus(@RequestBody Task task){
        return service.sendTaskStatus(task);
    public Response sendTaskStatus(@RequestBody TaskDto taskDto){
        return service.sendTaskStatus(taskDto);
    }
    @GetMapping("task/getFinishedPage")
    public Response getFinishedPage(@RequestParam int pageNum,@RequestParam int pageSize){
        return service.getFinishedPage(pageNum,pageSize);
    }
    @GetMapping("task/getOngoingList")
    public Response getOngoingList(){
        return service.getOngoingList();
    }
}