| | |
| | | private RowLastnoService rowLastnoService; |
| | | @Autowired |
| | | private WorkService workService; |
| | | @Autowired |
| | | private BasCrnpService basCrnpService; |
| | | |
| | | @PostMapping("/pakin/loc/v1") |
| | | @ResponseBody |
| | |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true); |
| | | // 检索库位 |
| | | List<String> matNos = waitPakins.stream().map(WaitPakin::getMatnr).distinct().collect(Collectors.toList()); |
| | | Integer integer = rowLastnoService.selectNextWhsType(); |
| | | int rowCount = rowLastnoService.selectCount(null); |
| | | Integer integer = 1; |
| | | for (int i = 1; i <= rowCount; i++) { |
| | | integer = rowLastnoService.selectNextWhsType(); |
| | | BasCrnp crn_no = basCrnpService.selectOne(new EntityWrapper<BasCrnp>() |
| | | .eq("crn_no", i)); |
| | | if (crn_no.getInEnable().equals("Y")){ |
| | | break; |
| | | } |
| | | } |
| | | |
| | | StartupDto dto = commonService.getLocNo(integer, 1, devpNo, matNos, locTypeDto,0); |
| | | int workNo = dto.getWorkNo(); |
| | | Date now = new Date(); |