fix(dqbom): 修复编辑页面新增bom暂存后再提交报错的问题
This commit is contained in:
parent
d43c9153c9
commit
5e6c611477
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue