fix(dqbom): 修复编辑页面新增bom暂存后再提交报错的问题

This commit is contained in:
曹鹏飞 2024-05-21 16:18:23 +08:00
parent d43c9153c9
commit 5e6c611477
1 changed files with 4 additions and 1 deletions

View File

@ -238,7 +238,10 @@ public class DQBomService {
parent.setCreatedJob(userRoleService.technician() ? UserJobEnum.ENGINEER.getValue() : UserJobEnum.DESIGNER.getValue());
parent.setSource(2);
dQBomParentService.save(parent);
query.getParent().setBomRowId(parent.getRowId());
BomNewDQbomVO pvo = Convert.convert(BomNewDQbomVO.class, parent);
pvo.setBomRowId(parent.getRowId());
query.setParent(pvo);
//query.getParent().setBomRowId(parent.getRowId());
} else {
//删除所有子级关系
dQBomChildService.deleteAllChildren(query.getParent().getBomRowId());