From 1e62a6d467407addae8745d8c69454318af56a09 Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期六, 18 五月 2024 08:04:09 +0800 Subject: [PATCH] ERP接口 --- src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java index d89f61f..a5cd6e2 100644 --- a/src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java @@ -326,7 +326,7 @@ if (Cools.isEmpty(agvBasDevp)) { throw new CoolException("鏆傛棤"+ station + "绔欑偣"); } - if (containerType == 40 && agvBasDevp.getFloor() == 3) { + if (containerType == 40) { locType = 5; } else if (containerType == 21 && agvBasDevp.getFloor() == 3) { locType = 4; @@ -609,13 +609,18 @@ agvLocMastService.updateLocStsByLocNo(locNo,"F",wrkMast.getBarcode(),(short)getContainerTypeByloc(locNo)); agvLocMastService.updateLocStsByLocNo(targetLocNo,"O","",null); // 鑷姩璋冩嫧鍑哄簱鍙栨秷 - } else if(wrkMast.getIoType() == 108 ) { + } else if(wrkMast.getIoType() == 108 || wrkMast.getIoType() == 111) { // 婧愬簱浣� String locNo = wrkMast.getSourceLocNo(); // 鐩爣搴撲綅 String targetLocNo = wrkMast.getLocNo(); agvLocMastService.updateLocStsByLocNo(locNo,"F",wrkMast.getBarcode(),(short)getContainerTypeByloc(locNo),"",(short)0); - agvLocMastService.updateLocStsByLocNo(targetLocNo,"O","",null); + if (wrkMast.getIoType() == 108) { + agvLocMastService.updateLocStsByLocNo(targetLocNo,"O","",null); + } else { + agvBasDevpService.updateLocStsAndBarcodeByDevNo(targetLocNo,"O","",wrkMast.getWhsType().shortValue()); + } + List<AgvLocDetl> agvLocDetls = agvLocDetlService.selectList(new EntityWrapper<AgvLocDetl>().eq("loc_no", locNo)); // 鏇存柊璁㈠崟 for (AgvLocDetl agvLocDetl : agvLocDetls) { -- Gitblit v1.9.1