From 07cdd2d370db314d237acb828c76283f1d1f4afd Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期二, 31 十二月 2024 20:25:41 +0800 Subject: [PATCH] no message --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/apis/wcs/controller/WaveManagentController.java | 35 ++++++++++++++++++++++++++++++++--- 1 files changed, 32 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..c6d896b 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,10 @@ 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.*; @RestController @RequestMapping("/wave") @@ -23,4 +22,34 @@ public R sowSeeds() { return waveManagentService.getSowSeeds(); } + + + @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