From d8d129a2e41f7099968cb4f4dc1b028ab985135f Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期四, 16 十一月 2023 20:20:47 +0800
Subject: [PATCH] Changes14
---
mes-technology/src/main/java/com/chinaztt/mes/technology/service/impl/BomServiceImpl.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/mes-technology/src/main/java/com/chinaztt/mes/technology/service/impl/BomServiceImpl.java b/mes-technology/src/main/java/com/chinaztt/mes/technology/service/impl/BomServiceImpl.java
index cacfed0..bb92df5 100644
--- a/mes-technology/src/main/java/com/chinaztt/mes/technology/service/impl/BomServiceImpl.java
+++ b/mes-technology/src/main/java/com/chinaztt/mes/technology/service/impl/BomServiceImpl.java
@@ -286,6 +286,7 @@
StructureTree root = getRootNode(partId);
//閫氳繃浜у搧缁撴瀯鏌ュ伐搴�
Map<Long, Integer> cache = new HashMap<>(80);
+
getStructureByPartId(root, partId, cache, version, alternativeNo, bomType, bomLayers);
return root;
}
@@ -617,7 +618,7 @@
if (bomLayers == 999) {
getStructureByPartId(child, component.getPartId(), cache, "ALL", "ALL", bomType, bomLayers);
// 鍒ゆ柇鍒扮鍑犲眰浜嗭紝鍒堕�犵被鍨嬩负1-宸插埗閫狅紝璁″垝鏂规硶涓篜-铏氭嫙浠�
- } else if (bomLayers > 0 && (part.getMaterialType().equals("1") && !part.getPlanningMethod().equals(
+ } else if (bomLayers > 0 && (part.getMaterialType().equals("1") && part.getPlanningMethod().equals(
"A"))) {
getStructureByPartId(child, component.getPartId(), cache, "ALL", "ALL", bomType, bomLayers);
}
--
Gitblit v1.9.3