Merge remote-tracking branch 'origin/feature/DM/nflg-bom-transition'
This commit is contained in:
commit
510d546378
|
|
@ -2140,6 +2140,10 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
// return dto.getParent();
|
||||
// }
|
||||
|
||||
//检查是否在主数据里
|
||||
if (CollUtil.isNotEmpty(dto.getDatas())) {
|
||||
CheckEBomException.checkMaterialNoInMain(dto.getDatas());
|
||||
}
|
||||
|
||||
EBomEdit eBomEdit = new EBomEdit(EBomSourceEnum.FROM_MDM.getValue());
|
||||
dto.setOpType(EbomEditStatusEnum.HANDLER_CREATED.getValue());
|
||||
|
|
@ -2192,14 +2196,17 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
checkUserRoleAuth(dto.getParent().getCreatedBy());
|
||||
|
||||
|
||||
// //无提交数据后面不处理
|
||||
// if (CollUtil.isEmpty(dto.getDatas())) {
|
||||
// return true;
|
||||
// }
|
||||
|
||||
//检查是否在主数据里
|
||||
if (CollUtil.isNotEmpty(dto.getDatas())) {
|
||||
CheckEBomException.checkMaterialNoInMain(dto.getDatas());
|
||||
}
|
||||
//构建操作数据
|
||||
EBomEdit eBomEdit = new EBomEdit(EBomSourceEnum.FROM_MDM.getValue());
|
||||
dto.setOpType(EbomEditStatusEnum.HANDLER_FINISHED.getValue());
|
||||
eBomEdit.handleBom(dto);
|
||||
|
||||
//子级的异常码包含不能提交
|
||||
List<Integer> checkStatus = CollectionUtil.toList(new Integer[]{
|
||||
EBomExceptionStatusEnum.EXCEPT_NO_2.getValue(),
|
||||
EBomExceptionStatusEnum.EXCEPT_NO_3.getValue(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue