fix(ebom): 修复显示缺bom但是无法添加下级的问题

This commit is contained in:
曹鹏飞 2024-06-24 11:25:18 +08:00
parent 560adb6b92
commit 86d0f26791
1 changed files with 5 additions and 7 deletions

View File

@ -373,9 +373,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
child.setDeviseUserCode(parentEntity.getDeviseUserCode());
child.setCreatedTime(parentEntity.getCreatedTime());
if (parentEntity.getBomExist() == 1) {
child.setBomRowId(parentEntity.getRowId());
}
child.setBomRowId(parentEntity.getRowId());
child.setLevelNum(parentEntity.getLevelNum());
child.setDeptName(parentEntity.getDeptName());
// child.setSource(parentEntity.getSource());
@ -2013,10 +2011,10 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
checkUserRoleAuth(dto.getParent().getCreatedBy());
//无提交数据后面不处理
if (CollUtil.isEmpty(dto.getDatas())) {
return true;
}
// //无提交数据后面不处理
// if (CollUtil.isEmpty(dto.getDatas())) {
// return true;
// }
EBomEdit eBomEdit = new EBomEdit(EBomSourceEnum.FROM_MDM.getValue());
dto.setOpType(EbomEditStatusEnum.HANDLER_FINISHED.getValue());
eBomEdit.handleBom(dto);