Merge branch 'refs/heads/feature/DM/nflg-bom' into feature/DM/nflg-bom-transition
This commit is contained in:
commit
a68ec65b09
|
|
@ -388,7 +388,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue