From 9f926486fbd2bd3635e7a19351238bb6b3c8f433 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 16 六月 2020 09:29:33 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/controller/WorkController.java | 39 +++++++++++++++++++++++++++++++++------ 1 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/zy/asrs/controller/WorkController.java b/src/main/java/com/zy/asrs/controller/WorkController.java index a060e06..a55964a 100644 --- a/src/main/java/com/zy/asrs/controller/WorkController.java +++ b/src/main/java/com/zy/asrs/controller/WorkController.java @@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; /** @@ -44,16 +45,42 @@ @RequestMapping("/full/store/put/start") @ManagerAuth(memo = "鍏ㄦ澘鍏ュ簱") - public R start(@RequestBody FullStoreParam fullStoreParam) { - workService.startupFullStore(fullStoreParam,getUserId()); - return R.ok("鍏ュ簱鎴愬姛"); + public R fullStorePutStart(@RequestBody FullStoreParam fullStoreParam) { + return R.ok("鍏ュ簱鍚姩鎴愬姛").add(workService.startupFullPutStore(fullStoreParam,getUserId())); + } + + @RequestMapping("/empty/plate/in/start") + @ManagerAuth(memo = "绌烘澘鍏ュ簱") + public R emptyPlateInStart(@RequestParam Integer sourceStaNo) { + return R.ok("鍏ュ簱鍚姩鎴愬姛").add(workService.emptyPlateIn(sourceStaNo, getUserId())); } @RequestMapping("/empty/plate/out/start") - @ManagerAuth(memo = "鍏ㄦ澘鍏ュ簱") - public R start(EmptyPlateOutParam param) { + @ManagerAuth(memo = "绌烘澘鍑哄簱") + public R emptyPlateOutStart(EmptyPlateOutParam param) { workService.emptyPlateOut(param, getUserId()); - return R.ok("鍑哄簱鎴愬姛"); + return R.ok("鍑哄簱鍚姩鎴愬姛"); + } + + @RequestMapping("/loc/move/start") + @ManagerAuth(memo = "搴撲綅绉昏浆") + public R locMoveStart(@RequestParam String sourceLocNo, + @RequestParam String targetLocNo) { +// workService.emptyPlateOut(param, getUserId()); + return R.ok("绉诲簱鍚姩鎴愬姛"); + } + + + @RequestMapping("/hand/control/wrkMast") + @ManagerAuth(memo = "鎵嬪姩澶勭悊宸ヤ綔妗�") + public R handControlWrkMast(@RequestParam String workNo, + @RequestParam Integer type){ + if (type == 1) { + workService.completeWrkMast(workNo, getUserId()); + } else if (type == 2) { + workService.cancelWrkMast(workNo, getUserId()); + } + return R.ok(); } } -- Gitblit v1.9.1