1、解决转PBOM-404问题
This commit is contained in:
parent
0fafee339d
commit
5995b101a5
|
|
@ -688,8 +688,10 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
for (Long bomRowId : paramDto.getBomRowIds()) {
|
for (Long bomRowId : paramDto.getBomRowIds()) {
|
||||||
|
|
||||||
BomNewEbomParentVO parent = Convert.convert(BomNewEbomParentVO.class, this.getById(bomRowId));
|
BomNewEbomParentVO parent = Convert.convert(BomNewEbomParentVO.class, this.getById(bomRowId));
|
||||||
|
VUtils.isTure(Objects.isNull(parent)).throwMessage("Bom版本不存在");
|
||||||
LogRecordContext.putVariable("bom", parent);
|
LogRecordContext.putVariable("bom", parent);
|
||||||
List<BomNewEbomParentVO> bomTree = getBomTree(bomRowId);
|
List<BomNewEbomParentVO> bomTree = getBomTree(bomRowId);
|
||||||
|
VUtils.isTure(CollUtil.isEmpty(bomTree)).throwMessage("该BOM不存在下降,无需转换");
|
||||||
parent.setBomRowId(parent.getRowId());
|
parent.setBomRowId(parent.getRowId());
|
||||||
parent.setChildBomRowId(parent.getRowId());
|
parent.setChildBomRowId(parent.getRowId());
|
||||||
parent.setParentRowId(0L);
|
parent.setParentRowId(0L);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue