| | |
| | | @RequestMapping("/available/put/site") |
| | | @ManagerAuth() |
| | | public R availablePutSite(){ |
| | | return R.ok().add(basDevpService.getAvailableInSite()); |
| | | return R.ok().add(basDevpService.getAvailableInSite(getHostId())); |
| | | } |
| | | |
| | | @RequestMapping("/available/empty/put/site") |
| | | @ManagerAuth() |
| | | public R availableEmptyPutSite(){ |
| | | return R.ok().add(basDevpService.getAvailableEmptyInSite()); |
| | | return R.ok().add(basDevpService.getAvailableEmptyInSite(getHostId())); |
| | | } |
| | | |
| | | @RequestMapping("/available/take/site") |
| | | @ManagerAuth() |
| | | public R availableTakeSite(){ |
| | | Long hostId = getHostId(); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | List<Integer> outSite = basDevpService.getAvailableOutSite(101); |
| | | List<Integer> outSite = basDevpService.getAvailableOutSite(101, hostId); |
| | | 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); |
| | | List<Integer> pickOutSite = basDevpService.getAvailableOutSite(103, hostId); |
| | | for (Integer siteId : pickOutSite) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("siteId", siteId); |
| | |
| | | @RequestMapping("/available/take/check/site") |
| | | @ManagerAuth() |
| | | public R availableTakeCheckSite(){ |
| | | return R.ok().add(basDevpService.getAvailableOutSite(107)); |
| | | return R.ok().add(basDevpService.getAvailableOutSite(107, getHostId())); |
| | | } |
| | | |
| | | } |