fix(ebom): 修复引用件为未正确显示的问题
This commit is contained in:
parent
ecea3c988d
commit
56b7b9a8e6
|
|
@ -387,7 +387,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
child.setNoticeNums(parentEntity.getNoticeNums());
|
child.setNoticeNums(parentEntity.getNoticeNums());
|
||||||
child.setSuperMaterialStatus(parentEntity.getSuperMaterialStatus());
|
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.setStatus(EBomStatusEnum.BORROWED_PARTS.getValue());
|
||||||
child.setBomRowId(0L);
|
child.setBomRowId(0L);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue