|  |  |  | 
|---|
|  |  |  | LocMast locMast = locMastService.getOne(new LambdaQueryWrapper<LocMast>() | 
|---|
|  |  |  | .eq(LocMast::getLocNo, locDto.getLocNo()) | 
|---|
|  |  |  | .eq(LocMast::getHostId, hostId)); | 
|---|
|  |  |  | if (locMast.getWhsType()!=0){ | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(!Cools.isEmpty(locMast) && !locMast.getLocSts().equals("F")){ | 
|---|
|  |  |  | return R.error("库位号非在库状态,请重新选择出库库位===>>" + locDto.getLocNo()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | BasDevp staNo = basDevpService.checkSiteStatus(taskDto.getStaNo(), false, hostId); | 
|---|
|  |  |  | workService.stockOut(staNo.getDevNo(), taskDto, getUserId(), hostId); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | return R.ok("立体仓库生成出库任务成功,平库请使用PDA进行出库!!!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|