fix(ebom): 修复引用件为未正确显示的问题

This commit is contained in:
曹鹏飞 2024-05-26 11:31:41 +08:00
parent ecea3c988d
commit 56b7b9a8e6
1 changed files with 2 additions and 1 deletions

View File

@ -387,7 +387,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
child.setNoticeNums(parentEntity.getNoticeNums());
child.setSuperMaterialStatus(parentEntity.getSuperMaterialStatus());
if (parentEntity.getStatus().equals(EBomStatusEnum.PUBLISHED.getValue())) {
if (!parent.getStatus().equals(EBomStatusEnum.PUBLISHED.getValue())
&& parentEntity.getStatus().equals(EBomStatusEnum.PUBLISHED.getValue())) {
child.setStatus(EBomStatusEnum.BORROWED_PARTS.getValue());
child.setBomRowId(0L);
}