From b9dfde3882128f8d7afaeba714b8f14ec8d482cf Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期四, 08 十二月 2022 13:14:51 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/service/CommonService.java | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 40 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java index 2f4a91a..1e48dab 100644 --- a/src/main/java/com/zy/common/service/CommonService.java +++ b/src/main/java/com/zy/common/service/CommonService.java @@ -114,11 +114,11 @@ int end = 30; int dualCrnNo; switch (sourceStaNo) { - case 107: + case 203: whsType = 1; dualCrnNo = 2; break; - case 118: + case 102: whsType = 2; start = 31; end = 32; @@ -277,6 +277,14 @@ if (whsType == 1) { List<Integer> rows = Utils.getGroupLoc(curRow); +// Iterator<Integer> iterator = rows.iterator(); +// while (iterator.hasNext()) { +// Integer next = iterator.next(); +// if (next.equals(17) || next.equals(18)) { +// iterator.remove(); +// } +// } + List<LocMast> locMasts = locMastService.queryFreeLocMast(rows, rows.size(), locTypeDto.getLocType1()); if (!Cools.isEmpty(locMasts)) { Integer innermostRow = Utils.getOutLayerRow(locMasts.get(0).getLocNo(), false); @@ -292,7 +300,37 @@ // locMast = null; // } } else { + if (Utils.isShallowLoc(slaveProperties, curRow)) { + Integer deepRow = Utils.getDeepRow(slaveProperties, curRow); + locMast = locMastService.queryFreeLocMast0(deepRow, locTypeDto.getLocType1()); + // 鍥犲簱浣嶇Щ杞�侀渶棰勭暀绌哄簱浣� + if (locMast !=null && !locMastService.checkEmptyCount(locMast)) { + locMast = null; + } + } + if (Cools.isEmpty(locMast)) { + locMast = locMastService.queryFreeLocMast0(curRow, locTypeDto.getLocType1()); + // 鍥犲簱浣嶇Щ杞�侀渶棰勭暀绌哄簱浣� + if (!locMastService.checkEmptyCount(locMast)) { + locMast = null; + } + + // 鐩爣搴撲綅 ===>> 娴呭簱浣嶏紝 鍒欐牎楠屽叾娣卞簱浣嶆槸鍚︿负 F D X + if (null != locMast && Utils.isShallowLoc(slaveProperties, locMast.getLocNo())) { + LocMast deepLoc = locMastService.selectById(Utils.getDeepLoc(slaveProperties, locMast.getLocNo())); + if (!deepLoc.getLocSts().equals("F") && !deepLoc.getLocSts().equals("D") && !deepLoc.getLocSts().equals("X")) { + locMast = null; + } + } + // 鐩爣搴撲綅 ===>> 娣卞簱浣嶏紝 鍒欐牎楠屽叾娴呭簱浣嶆槸鍚︿负 O + if (null != locMast && Utils.isDeepLoc(slaveProperties, locMast.getLocNo())) { + LocMast shallowLoc = locMastService.selectById(Utils.getShallowLoc(slaveProperties, locMast.getLocNo())); + if (!shallowLoc.getLocSts().equals("O")) { + locMast = null; + } + } + } } } -- Gitblit v1.9.1