Merge branch 'refs/heads/feature/DM/nflg-bom-dq' into feature/DM/nflg-bom-transition

This commit is contained in:
曹鹏飞 2024-05-21 16:18:41 +08:00
commit a4d4b2cffc
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());