From 00985eabb51145130d4fa253b153aaeeec3a957a Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期日, 24 三月 2024 20:22:05 +0800 Subject: [PATCH] # app version --- src/main/java/com/zy/asrs/controller/AgvMobileController.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/controller/AgvMobileController.java b/src/main/java/com/zy/asrs/controller/AgvMobileController.java index d1bd0b8..6987853 100644 --- a/src/main/java/com/zy/asrs/controller/AgvMobileController.java +++ b/src/main/java/com/zy/asrs/controller/AgvMobileController.java @@ -2,12 +2,14 @@ import com.core.common.R; import com.zy.asrs.entity.AgvBasDevp; +import com.zy.asrs.entity.param.AgvMobileStartParam; import com.zy.asrs.entity.param.CombParam; import com.zy.asrs.service.AgvBasDevpService; import com.zy.asrs.service.AgvMobileService; import com.zy.asrs.service.AgvWorkService; import com.zy.asrs.service.OrderDetlService; import com.zy.common.web.BaseController; +import lombok.Synchronized; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -69,9 +71,18 @@ } /* + 鑾峰彇杈撻�佺嚎绔欑偣 + */ + @PostMapping("/getBasDevp/noCacheShelves/auth") + public R getBasDevpByNoCacheShelves(){ + return R.ok(agvBasDevpService.getBasDevpByNoCacheShelves()); + } + + /* 鍚姩鍏ュ簱锛岀敓鎴愬伐浣滄。 */ @PostMapping("/pakin/auth") + @Synchronized public R pakin(@RequestBody Map<String,Object> map){ List<String> devNos = (List<String>) map.get("devNo"); @@ -84,5 +95,32 @@ return R.ok("鐢熸垚宸ヤ綔妗f垚鍔�"); } + /* + 鍏ュ簱 + */ + @PostMapping("/pakin/empty/auth") + @Synchronized + public R pakinEmpty(@RequestBody List<AgvMobileStartParam> params){ + + for (AgvMobileStartParam param : params){ + workService.emptyPlateIn(param.getDevNo(),param.getContainerCode(),param.getContainerType(), getUserId()); + } + + return R.ok(); + } + + /* + 绌烘澘鍑哄簱 + */ + @PostMapping("/pakout/empty/auth") + @Synchronized + public R pakoutEmpty(@RequestBody List<AgvMobileStartParam> params){ + + for (AgvMobileStartParam param : params){ + workService.emptyPlateOut(param.getDevNo(),param.getContainerType(), getUserId()); + } + + return R.ok(); + } } -- Gitblit v1.9.1