fix: 修复2个bug
This commit is contained in:
parent
4d39400144
commit
8bf4612a31
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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下的虚拟包不能复制");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue