|  |  | 
 |  |  |         // 检索库位 | 
 |  |  |         LocTypeDto locTypeDto = new LocTypeDto(sourceStaNo); | 
 |  |  |         List<String> matnrs = param.getList().stream().map(FullStoreParam.MatCodeStore::getMatnr).distinct().collect(Collectors.toList()); | 
 |  |  |         StartupDto dto = commonService.getLocNo(DEFAULT_ROW_NO_TYPE, 1, param.getDevpNo(), matnrs.get(0), null, null,locTypeDto,0); | 
 |  |  | //        List<String> batchs = param.getList().stream().map(FullStoreParam.MatCodeStore::getBatch).distinct().collect(Collectors.toList()); | 
 |  |  |         StartupDto dto = commonService.getLocNo(1, param.getDevpNo(), matnrs.get(0), null, null,locTypeDto); | 
 |  |  |         if (Cools.isEmpty(dto)){ | 
 |  |  |             throw new CoolException("查询库位失败!!==》startupFullPutStore ==》 commonService.getLocNo"); | 
 |  |  |         } | 
 |  |  |         // 生成工作号 | 
 |  |  |         int workNo = dto.getWorkNo(); | 
 |  |  |         // 生成工作档 | 
 |  |  | 
 |  |  |         BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true); | 
 |  |  |         // 检索库位 | 
 |  |  |         LocTypeDto locTypeDto = new LocTypeDto(sourceStaNo); | 
 |  |  |         StartupDto dto = commonService.getLocNo(DEFAULT_ROW_NO_TYPE, 10, devpNo, null,null,null, locTypeDto, 0); | 
 |  |  |         StartupDto dto = commonService.getLocNo( 10, devpNo, null,null,null, locTypeDto); | 
 |  |  |         int workNo = dto.getWorkNo(); | 
 |  |  |         Date now = new Date(); | 
 |  |  |         // 生成工作档 | 
 |  |  | 
 |  |  |             throw new CoolException("当前工作档已完成"); | 
 |  |  |         } | 
 |  |  |         // 入库 + 库位转移 | 
 |  |  |         if (wrkMast.getWrkSts() < 4 || (wrkMast.getWrkSts() > 10 && wrkMast.getIoType()==11)) { | 
 |  |  |         if (wrkMast.getIoType() <100 ) { | 
 |  |  |             wrkMast.setWrkSts(4L); | 
 |  |  |         // 出库 | 
 |  |  |         } else if (wrkMast.getWrkSts() > 10) { | 
 |  |  |         } else if (wrkMast.getIoType() >100  && wrkMast.getWrkSts() > 10) { | 
 |  |  |             wrkMast.setWrkSts(14L); | 
 |  |  |         } | 
 |  |  |         Date now = new Date(); |