| | |
| | | integer = rowLastnoService.selectNextWhsType(); |
| | | BasCrnp crn_no = basCrnpService.selectOne(new EntityWrapper<BasCrnp>() |
| | | .eq("crn_no", i)); |
| | | if (crn_no.getInEnable().equals("Y")){ |
| | | if (crn_no.getInEnable().equals("Y") && crn_no.getCrnSts().equals("3")){ |
| | | break; |
| | | } |
| | | } |
| | |
| | | public StartupDto emptyPlateIn(Integer devpNo, LocTypeDto locTypeDto, String barcode) { |
| | | // 源站点状态检测 |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true); |
| | | 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") && crn_no.getCrnSts().equals("3")){ |
| | | break; |
| | | } |
| | | } |
| | | // 检索库位 |
| | | StartupDto dto = commonService.getLocNo(1, 10, devpNo, null, locTypeDto,0); |
| | | StartupDto dto = commonService.getLocNo(integer, 10, devpNo, null, locTypeDto,0); |
| | | int workNo = dto.getWorkNo(); |
| | | // 生成工作档 |
| | | WrkMast wrkMast = new WrkMast(); |