fix(ebom): 修复显示缺bom但是无法添加下级的问题
This commit is contained in:
parent
560adb6b92
commit
86d0f26791
|
|
@ -373,9 +373,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
child.setDeviseUserCode(parentEntity.getDeviseUserCode());
|
child.setDeviseUserCode(parentEntity.getDeviseUserCode());
|
||||||
|
|
||||||
child.setCreatedTime(parentEntity.getCreatedTime());
|
child.setCreatedTime(parentEntity.getCreatedTime());
|
||||||
if (parentEntity.getBomExist() == 1) {
|
child.setBomRowId(parentEntity.getRowId());
|
||||||
child.setBomRowId(parentEntity.getRowId());
|
|
||||||
}
|
|
||||||
child.setLevelNum(parentEntity.getLevelNum());
|
child.setLevelNum(parentEntity.getLevelNum());
|
||||||
child.setDeptName(parentEntity.getDeptName());
|
child.setDeptName(parentEntity.getDeptName());
|
||||||
// child.setSource(parentEntity.getSource());
|
// child.setSource(parentEntity.getSource());
|
||||||
|
|
@ -2013,10 +2011,10 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
checkUserRoleAuth(dto.getParent().getCreatedBy());
|
checkUserRoleAuth(dto.getParent().getCreatedBy());
|
||||||
|
|
||||||
|
|
||||||
//无提交数据后面不处理
|
// //无提交数据后面不处理
|
||||||
if (CollUtil.isEmpty(dto.getDatas())) {
|
// if (CollUtil.isEmpty(dto.getDatas())) {
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
EBomEdit eBomEdit = new EBomEdit(EBomSourceEnum.FROM_MDM.getValue());
|
EBomEdit eBomEdit = new EBomEdit(EBomSourceEnum.FROM_MDM.getValue());
|
||||||
dto.setOpType(EbomEditStatusEnum.HANDLER_FINISHED.getValue());
|
dto.setOpType(EbomEditStatusEnum.HANDLER_FINISHED.getValue());
|
||||||
eBomEdit.handleBom(dto);
|
eBomEdit.handleBom(dto);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue