Merge branch 'refs/heads/feature/DM/nflg-bom' into feature/DM/nflg-bom-transition

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

View File

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