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

This commit is contained in:
曹鹏飞 2024-05-25 17:15:08 +08:00
parent ab1449e3f0
commit c08ed0d539
1 changed files with 1 additions and 2 deletions

View File

@ -382,8 +382,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
child.setNoticeNums(parentEntity.getNoticeNums());
child.setSuperMaterialStatus(parentEntity.getSuperMaterialStatus());
if (!Objects.equals(child.getStatus(), EBomStatusEnum.PUBLISHED.getValue())
&& parentEntity.getStatus().equals(EBomStatusEnum.PUBLISHED.getValue())) {
if (parentEntity.getStatus().equals(EBomStatusEnum.PUBLISHED.getValue())) {
child.setStatus(EBomStatusEnum.BORROWED_PARTS.getValue());
}
// //非本人则为借用件