From abccd023bae40d5d8ad2fcdbf848b4240928414d Mon Sep 17 00:00:00 2001
From: whycxzp <glperry@163.com>
Date: 星期三, 23 四月 2025 14:00:23 +0800
Subject: [PATCH] 更新取消任务接口

---
 src/main/java/com/whyc/controller/InterfaceWmsController.java |   54 +++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 51 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/whyc/controller/InterfaceWmsController.java b/src/main/java/com/whyc/controller/InterfaceWmsController.java
index 1c45208..d401648 100644
--- a/src/main/java/com/whyc/controller/InterfaceWmsController.java
+++ b/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.service.WmsService;
 import io.swagger.annotations.Api;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -29,12 +28,36 @@
     /**
      * 涓嬪彂浠诲姟
      * API:/api/Wms_pallet/WmsOutTask
-     * TODO 鐤戦棶鐐�: 浠诲姟濡傛灉鏄嚭搴�, 閭d箞鍑哄簱鐨勫簱浣嶆槸鍝釜? 鎺ュ彛鍙傛暟閮芥病鏈夋寚鏄�
+     * See Also: {com.whyc.dto.WmsPalletDto} WmsPalletDto
+     * des	Int	鏄�	浠诲姟绫诲瀷 1 =鍑哄簱銆�2=娴嬬數鍘嬨��3=娲诲寲
      */
     @PostMapping("sendTask")
     public Response sendTask(@RequestBody WmsPalletDto palletDto){
 
         return service.sendTask(palletDto);
+    }
+
+    /**
+     * 涓嬪彂鍏ュ簱浠诲姟
+     * @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);
     }
 
     /**
@@ -53,5 +76,30 @@
         return service.getLocationList();
     }
 
+    @GetMapping("getPalletList")
+    public Response getPalletList(@RequestParam int MaterialType,@RequestParam int PalletStatus){
+
+        return service.getPalletList(MaterialType,PalletStatus);
+    }
+
+    /**
+     * 鎻愪緵缁欑涓夋柟鐨勬帴鍙�,鐢ㄤ簬鎺ユ敹浠诲姟鐘舵��
+     * @param taskDto
+     * @return
+     */
+    @PostMapping("sendTaskStatus")
+    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();
+    }
 
 }

--
Gitblit v1.9.1