生成PBOM时,bom没有子项的话,仅生成EBOM正式表,不生成PBOM任务2
This commit is contained in:
parent
cdcf08e706
commit
8d31889ccf
|
|
@ -1028,7 +1028,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
&& !eBomToPBom.getPBomChildResult().stream().map(BomNewPbomChildEntity::getParentRowId).collect(Collectors.toList()).contains(p.getRowId()) )
|
&& !eBomToPBom.getPBomChildResult().stream().map(BomNewPbomChildEntity::getParentRowId).collect(Collectors.toList()).contains(p.getRowId()) )
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
if(!emptyChildParentList.isEmpty()){
|
if(!emptyChildParentList.isEmpty()){
|
||||||
List<BomNewPbomParentEntity> fList = emptyChildParentList.stream().filter(p -> {
|
//仅选择的第一层需要提示
|
||||||
|
List<BomNewPbomParentEntity> fList = emptyChildParentList.stream().filter(p -> p.getSourceRowId().equals(bomRowId)).filter(p -> {
|
||||||
Optional<BomNewEbomParentVO> opt = bomTree.stream().filter(t -> p.getMaterialNo().equals(t.getMaterialNo())).findFirst();
|
Optional<BomNewEbomParentVO> opt = bomTree.stream().filter(t -> p.getMaterialNo().equals(t.getMaterialNo())).findFirst();
|
||||||
if(opt.isPresent()){
|
if(opt.isPresent()){
|
||||||
List<BomNewEbomParentVO> cList = bomTree.stream().filter(t -> t.getParentRowId().equals(opt.get().getRowId())).collect(Collectors.toList());
|
List<BomNewEbomParentVO> cList = bomTree.stream().filter(t -> t.getParentRowId().equals(opt.get().getRowId())).collect(Collectors.toList());
|
||||||
|
|
@ -1221,7 +1222,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
&& !eBomToPBom.getPBomChildResult().stream().map(BomNewPbomChildEntity::getParentRowId).collect(Collectors.toList()).contains(p.getRowId()) )
|
&& !eBomToPBom.getPBomChildResult().stream().map(BomNewPbomChildEntity::getParentRowId).collect(Collectors.toList()).contains(p.getRowId()) )
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
if(!emptyChildParentList.isEmpty()){
|
if(!emptyChildParentList.isEmpty()){
|
||||||
List<BomNewPbomParentEntity> fList = emptyChildParentList.stream().filter(p -> {
|
//仅选择的第一层需要提示
|
||||||
|
List<BomNewPbomParentEntity> fList = emptyChildParentList.stream().filter(p -> p.getSourceRowId().equals(bomRowId)).filter(p -> {
|
||||||
Optional<BomNewEbomParentVO> opt = bomTree.stream().filter(t -> p.getMaterialNo().equals(t.getMaterialNo())).findFirst();
|
Optional<BomNewEbomParentVO> opt = bomTree.stream().filter(t -> p.getMaterialNo().equals(t.getMaterialNo())).findFirst();
|
||||||
if(opt.isPresent()){
|
if(opt.isPresent()){
|
||||||
List<BomNewEbomParentVO> cList = bomTree.stream().filter(t -> t.getParentRowId().equals(opt.get().getRowId())).collect(Collectors.toList());
|
List<BomNewEbomParentVO> cList = bomTree.stream().filter(t -> t.getParentRowId().equals(opt.get().getRowId())).collect(Collectors.toList());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue