| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 工作流接口控制器 |
| | | * Created by vincent on 2020/6/10 |
| | |
| | | private BasDevpService basDevpService; |
| | | |
| | | @RequestMapping("/available/put/site") |
| | | @ManagerAuth(memo = "获取入库站点") |
| | | @ManagerAuth() |
| | | public R availablePutSite(){ |
| | | return R.ok().add(basDevpService.getAvailableInSite()); |
| | | } |
| | | |
| | | @RequestMapping("/available/empty/put/site") |
| | | @ManagerAuth(memo = "获取空板入库站点") |
| | | @ManagerAuth() |
| | | public R availableEmptyPutSite(){ |
| | | return R.ok().add(basDevpService.getAvailableEmptyInSite()); |
| | | } |
| | | |
| | | @RequestMapping("/available/take/site") |
| | | @ManagerAuth(memo = "获取出库站点") |
| | | @ManagerAuth() |
| | | public R availableTakeSite(){ |
| | | return R.ok().add(basDevpService.getAvailableOutSite()); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | List<Integer> outSite = basDevpService.getAvailableOutSite(101); |
| | | for (Integer siteId : outSite) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("siteId", siteId); |
| | | map.put("desc", siteId + "(全板出库口)"); |
| | | result.add(map); |
| | | } |
| | | List<Integer> pickOutSite = basDevpService.getAvailableOutSite(103); |
| | | for (Integer siteId : pickOutSite) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("siteId", siteId); |
| | | map.put("desc", siteId + "(拣料出库口)"); |
| | | result.add(map); |
| | | } |
| | | return R.ok().add(result); |
| | | } |
| | | |
| | | @RequestMapping("/available/take/check/site") |
| | | @ManagerAuth() |
| | | public R availableTakeCheckSite(){ |
| | | return R.ok().add(basDevpService.getAvailableOutSite(107)); |
| | | } |
| | | |
| | | @RequestMapping("/available/empty/take/site") |
| | | @ManagerAuth(memo = "获取空板出库站点") |
| | | @ManagerAuth() |
| | | public R availableEmptyTakeSite(){ |
| | | return R.ok().add(basDevpService.getAvailableEmptyOutSite()); |
| | | } |
| | |
| | | return R.ok("工作档已取消"); |
| | | } else if (type == 3) { |
| | | workService.pickWrkMast(workNo, getUserId()); |
| | | return R.ok(); |
| | | return R.ok("工作档已拣料"); |
| | | } |
| | | return R.ok(); |
| | | } |