|
@ -176,6 +176,8 @@ private ISysAttachService attachService; |
|
|
@Override |
|
|
@Override |
|
|
public List<ErpBom> selectErpBomAllLevelList(ErpBom erpBom) { |
|
|
public List<ErpBom> selectErpBomAllLevelList(ErpBom erpBom) { |
|
|
List<ErpBom> resultList = new ArrayList<>(); |
|
|
List<ErpBom> resultList = new ArrayList<>(); |
|
|
|
|
|
erpBom.setAuditStatus("1"); |
|
|
|
|
|
erpBom.setUseStatus("1"); |
|
|
// 一阶集合
|
|
|
// 一阶集合
|
|
|
List<ErpBom> oneLevelList = erpBomMapper.selectErpBomSubList(erpBom); |
|
|
List<ErpBom> oneLevelList = erpBomMapper.selectErpBomSubList(erpBom); |
|
|
if(CollectionUtils.isNotEmpty(oneLevelList)){ |
|
|
if(CollectionUtils.isNotEmpty(oneLevelList)){ |
|
@ -196,6 +198,8 @@ private ISysAttachService attachService; |
|
|
Long subId = subBom.getId(); |
|
|
Long subId = subBom.getId(); |
|
|
ErpBom erpBom1 = new ErpBom(); |
|
|
ErpBom erpBom1 = new ErpBom(); |
|
|
erpBom1.setParentId(subId); |
|
|
erpBom1.setParentId(subId); |
|
|
|
|
|
erpBom1.setAuditStatus("1"); |
|
|
|
|
|
erpBom1.setUseStatus("1"); |
|
|
List<ErpBom> subLevelList = erpBomMapper.selectErpBomSubList(erpBom1); |
|
|
List<ErpBom> subLevelList = erpBomMapper.selectErpBomSubList(erpBom1); |
|
|
if(CollectionUtils.isNotEmpty(subLevelList)){ |
|
|
if(CollectionUtils.isNotEmpty(subLevelList)){ |
|
|
for (ErpBom sub: subLevelList) { |
|
|
for (ErpBom sub: subLevelList) { |
|
|