| | |
| | | storageResult.setErrorMessage("源站编号不能为空"); |
| | | return storageResult; |
| | | } |
| | | BasDevp basDevp=basDevpService.selectOne(new EntityWrapper<BasDevp>().eq("dev_no",param.getWcsSourceStaNo())); |
| | | int ioType = 0; |
| | | List<WaitPakin> waitPakins = null; |
| | | if (param.getWcsIoType() == 1) { |
| | |
| | | if (Cools.isEmpty(param.getBoxNo())) { |
| | | storageResult.setReturnStatus(1); |
| | | storageResult.setErrorMessage("条码不能为空"); |
| | | basDevp.setArea("条码不能为空"); |
| | | basDevpService.updateById(basDevp); |
| | | return storageResult; |
| | | } |
| | | waitPakins = waitPakinService.selectList(new EntityWrapper<WaitPakin>().eq("zpallet", param.getBoxNo())); |
| | |
| | | if (wrkMast != null && wrkMast.getIoType() == 103) { |
| | | storageResult.setReturnStatus(1); |
| | | storageResult.setErrorMessage(CodeRes.PICK_600); |
| | | basDevp.setArea(CodeRes.PICK_600); |
| | | basDevpService.updateById(basDevp); |
| | | return storageResult; |
| | | } |
| | | storageResult.setReturnStatus(1); |
| | | storageResult.setErrorMessage(CodeRes.NO_COMB_700); |
| | | basDevp.setArea(CodeRes.NO_COMB_700); |
| | | basDevpService.updateById(basDevp); |
| | | return storageResult; |
| | | } |
| | | int countLoc = locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("zpallet", param.getBoxNo())); |
| | |
| | | if (countLoc > 0 || countWrk > 0) { |
| | | storageResult.setReturnStatus(1); |
| | | storageResult.setErrorMessage(CodeRes.EXIST_500); |
| | | basDevp.setArea(CodeRes.NO_COMB_700); |
| | | basDevpService.updateById(basDevp); |
| | | return storageResult; |
| | | } |
| | | }else { |
| | |
| | | */ |
| | | @Transactional |
| | | public StorageResult startupFullPutStore(Integer devpNo, String barcode, List<WaitPakin> waitPakins,Integer ioType) { |
| | | BasDevp basDevp=basDevpService.selectOne(new EntityWrapper<BasDevp>().eq("dev_no",devpNo)); |
| | | |
| | | StorageResult storageResult=new StorageResult(); |
| | | Integer[] arr=arr(); |
| | | LocMast locMast1=new LocMast(); |
| | |
| | | wrkMast.setModiTime(now); |
| | | boolean res = wrkMastService.insert(wrkMast); |
| | | if (!res) { |
| | | basDevp.setArea("保存工作档失败"); |
| | | basDevpService.updateById(basDevp); |
| | | throw new CoolException("保存工作档失败"); |
| | | } |
| | | // 生成工作档明细 |
| | |
| | | wrkDetl.setAppeTime(now); |
| | | wrkDetl.setModiTime(now); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | basDevp.setArea("保存工作明细失败"); |
| | | basDevpService.updateById(basDevp); |
| | | throw new CoolException("保存工作明细失败"); |
| | | } |
| | | }); |
| | |
| | | setParam.setIoStatus("Y"); |
| | | setParam.setModiTime(now); |
| | | if (!waitPakinService.update(setParam, wrapper)) { |
| | | basDevp.setArea("更新通知档失败"); |
| | | basDevpService.updateById(basDevp); |
| | | throw new CoolException("更新通知档失败"); |
| | | } |
| | | } |
| | |
| | | locMast.setLocSts("S"); // S.入库预约 |
| | | locMast.setModiTime(new Date()); |
| | | if (!locMastService.updateById(locMast)){ |
| | | basDevp.setArea("改变库位状态失败"); |
| | | basDevpService.updateById(basDevp); |
| | | throw new CoolException("改变库位状态失败"); |
| | | } |
| | | } else { |
| | | basDevp.setArea(locMast1.getLocNo()+"目标库位已被占用"); |
| | | basDevpService.updateById(basDevp); |
| | | throw new CoolException(locMast1.getLocNo()+"目标库位已被占用"); |
| | | } |
| | | |