From 3059430a0db3f75426e435c06090358646fc3792 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期四, 09 十一月 2023 09:11:17 +0800
Subject: [PATCH] Changes11

---
 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