fix: 修复2个bug

This commit is contained in:
曹鹏飞 2024-05-18 17:15:03 +08:00
parent 4d39400144
commit 8bf4612a31
2 changed files with 2 additions and 2 deletions

View File

@ -1126,7 +1126,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
try {
this.getBaseMapper().updateRootState();
ebomChildService.getBaseMapper().updateEBomMaterialUse();
this.compucteLevelNum();
//this.compucteLevelNum();
} catch (Exception e) {
log.info("计算层级出错:" + e.getMessage());

View File

@ -586,7 +586,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
VUtils.isTure(root.getMaterialNo().startsWith("31")).throwMessage("31码物料不能进行复制");
BomNewPbomChildEntity child = pbomChildService.getById(rowId);
if (child.getVirtualPartRootMaterialNo().startsWith("31") && child.getVirtualPartType() > 0) {
if (Objects.nonNull(child) && child.getVirtualPartRootMaterialNo().startsWith("31") && child.getVirtualPartType() > 0) {
VUtils.isTure(true).throwMessage("31下的虚拟包不能复制");
}