|  |  | 
 |  |  |         BasDevp sourceStaNo = basDevpService.checkSiteStatus(12, true); | 
 |  |  |  | 
 |  |  |         // 检索库位 | 
 |  |  |         StartupDto dto = commonService.getLocNo(rowLastnoService.selectNextWhsType(), 10, 15, null, locTypeDto,0); | 
 |  |  |         StartupDto dto = commonService.getLocNo(rowLastnoService.selectNextWhsType(), 10, 12, null, locTypeDto,0); | 
 |  |  |         Date now = new Date(); | 
 |  |  |         // 生成工作档 | 
 |  |  |         WrkMast wrkMast = new WrkMast(); | 
 |  |  | 
 |  |  |             return R.error("库存没有空板"); | 
 |  |  |         } | 
 |  |  |         EmptyPlateOutParam emptyPlateOutParam = new EmptyPlateOutParam(); | 
 |  |  |         emptyPlateOutParam.setOutSite(11); | 
 |  |  |         emptyPlateOutParam.setOutSite(12); | 
 |  |  |         emptyPlateOutParam.setLocNos(new ArrayList<String>(){{add(locMast.getLocNo()+"");}}); | 
 |  |  |         WrkMast wrkMast = workService.emptyPlateOut(emptyPlateOutParam); | 
 |  |  |         return R.ok(!Cools.isEmpty(wrkMast)? R.ok("自动空托出库成功,工作号:" + wrkMast.getWrkNo()) : R.error("生成自动空托出库失败")); |