| | |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.BasDevp; |
| | | import com.zy.asrs.entity.WaitPakin; |
| | | import com.zy.asrs.entity.param.EmptyPlateOutParam; |
| | | import com.zy.asrs.entity.param.FullStoreParam; |
| | |
| | | @ManagerAuth() |
| | | public R availableTakeSite(){ |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | List<Integer> outSite = basDevpService.getAvailableOutSite(101); |
| | | for (Integer siteId : outSite) { |
| | | List<BasDevp> outSite = basDevpService.getAvailableOutSiteAndDesc(101); |
| | | for (BasDevp siteId : outSite) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("siteId", siteId); |
| | | map.put("desc", siteId + "(全板出库口)"); |
| | | map.put("siteId", siteId.getDevNo()); |
| | | map.put("desc", siteId.getDevNo() + siteId.getDecDesc()); |
| | | result.add(map); |
| | | } |
| | | List<Integer> pickOutSite = basDevpService.getAvailableOutSite(103); |
| | | for (Integer siteId : pickOutSite) { |
| | | List<BasDevp> pickOutSite = basDevpService.getAvailableOutSiteAndDesc(103); |
| | | for (BasDevp siteId : pickOutSite) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("siteId", siteId); |
| | | map.put("desc", siteId + "(拣料出库口)"); |
| | | map.put("siteId", siteId.getDevNo()); |
| | | map.put("desc", siteId.getDevNo() + siteId.getDecDesc()); |
| | | result.add(map); |
| | | } |
| | | return R.ok().add(result); |
| | |
| | | return R.ok().add(basDevpService.getAvailableEmptyOutSite()); |
| | | } |
| | | |
| | | @RequestMapping("/available/take/check/siteDesc") |
| | | @ManagerAuth() |
| | | public R availableTakeCheckSiteDesc() { |
| | | List<BasDevp> availableOutSite = basDevpService.getAvailableOutSiteAndDesc(107); |
| | | List<String> data = new ArrayList<>(); |
| | | for (BasDevp siteId : availableOutSite) { |
| | | data.add(siteId.getDevNo() + siteId.getDecDesc()); |
| | | } |
| | | return R.ok().add(data); |
| | | } |
| | | |
| | | @RequestMapping("/available/empty/take/siteDesc") |
| | | @ManagerAuth() |
| | | public R availableEmptyTakeSiteDesc() { |
| | | List<BasDevp> availableOutSite = basDevpService.getAvailableEmptyOutSiteAndDesc(); |
| | | List<String> data = new ArrayList<>(); |
| | | for (BasDevp siteId : availableOutSite) { |
| | | data.add(siteId.getDevNo() + siteId.getDecDesc()); |
| | | } |
| | | return R.ok().add(data); |
| | | } |
| | | |
| | | @RequestMapping("/full/store/put/start") |
| | | @ManagerAuth(memo = "全板入库") |
| | | public R fullStorePutStart(@RequestBody FullStoreParam fullStoreParam) { |