feat(ebom): 解决导入sap的物料总数与实际不符的问题

This commit is contained in:
曹鹏飞 2024-06-04 07:58:06 +08:00
parent 66b63234e7
commit 2163f7ad82
1 changed files with 58 additions and 53 deletions

View File

@ -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;
}