From d1511d2d12b4223882fcfdabd3ba6b59c038edc4 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期三, 08 一月 2025 21:29:46 +0800 Subject: [PATCH] #拣货单功能开发 --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/WaveManagentController.java | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 53 insertions(+), 3 deletions(-) diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/WaveManagentController.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/WaveManagentController.java index 93705e1..ecc1633 100644 --- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/WaveManagentController.java +++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/WaveManagentController.java @@ -2,11 +2,12 @@ import com.zy.asrs.framework.common.R; import com.zy.asrs.wms.apis.wcs.services.WaveManagentService; +import com.zy.asrs.wms.asrs.entity.param.WaveSeedReviewParam; import com.zy.asrs.wms.system.controller.BaseController; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; + +import java.util.Map; @RestController @RequestMapping("/wave") @@ -23,4 +24,53 @@ public R sowSeeds() { return waveManagentService.getSowSeeds(); } + + + /** + * 閫氳繃浠诲姟鍙锋媺鍙栦换鍔℃槑缁� + * @param taskNo + * @return + */ + @GetMapping("/sow/task/detl/{taskNo}") + public R getTaskDetl(@PathVariable String taskNo) { + return waveManagentService.getTaskDetl(taskNo); + } + + @PostMapping("/task/detl/qutify") + public R getTaskDetlQutify(@RequestBody Map<String, Object> param) { + return waveManagentService.getTaskDetlQutify(param); + } + + /*** + * 鑾峰彇鍑哄簱鍒楄〃 + * @return + */ + @GetMapping("/sow/tasks") + public R getTasks() { + return waveManagentService.getTask(); + } + + /** + * 瀹℃牳鎾鐘舵�佷换鍔� + * @param reviewParam + * @return + */ + @PostMapping("/sow/review") + public R reviewSeeds(@RequestBody WaveSeedReviewParam reviewParam) { + return waveManagentService.reviewSeeds(reviewParam); + } + + /** + * 鍒犻櫎鎾 + * @param id + * @return + */ + @GetMapping("/sow/remove/{id}") + public R delSowSeeds(@PathVariable Long id) { + if (waveManagentService.removeSowSeed(id) > 0) { + return R.ok("鍒犻櫎鎴愬姛锛侊紒"); + } else { + return R.error("鍒犻櫎澶辫触锛侊紒"); + } + } } -- Gitblit v1.9.1