feat(ebom): 解决导入sap的物料总数与实际不符的问题
This commit is contained in:
parent
66b63234e7
commit
2163f7ad82
|
|
@ -90,6 +90,13 @@ public class BomNewEbomExportToSAP {
|
|||
}
|
||||
boolean isEmpty = false;
|
||||
for (BomNewEbomChildEntity it : cc) {
|
||||
isEmpty = handlerItem(cRowId, it, p, c, ignore, isEmpty);
|
||||
}
|
||||
LOGGER.debug("children数量:" + children.size());
|
||||
return isEmpty;
|
||||
}
|
||||
|
||||
private boolean handlerItem(Long cRowId, BomNewEbomChildEntity it, BomNewEbomParentEntity p, BomNewEbomChildEntity c, boolean ignore, boolean isEmpty) {
|
||||
if (Objects.nonNull(c) && Objects.equals(c.getVirtualPartType(), VirtualPackageTypeEnum.DIRECT_DELIVERY_PACKAGE.getValue())) {
|
||||
if (Objects.nonNull(cRowId)) {
|
||||
if (cRowId == 0L) {
|
||||
|
|
@ -148,8 +155,6 @@ public class BomNewEbomExportToSAP {
|
|||
children.add(convert(it, p.getMaterialNo(), ignore));
|
||||
}
|
||||
}
|
||||
}
|
||||
LOGGER.debug("children数量:" + children.size());
|
||||
return isEmpty;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue