feat: 相同编号的物料,如果项目类型不同,则判断为正常,否则提示数据重复
This commit is contained in:
parent
67160f8f1f
commit
b34beca4f2
|
|
@ -158,11 +158,15 @@ public class CheckEBomException {
|
||||||
for (String key : childMaterialMap.keySet()) {
|
for (String key : childMaterialMap.keySet()) {
|
||||||
List<BomNewEbomParentVO> materialGroupList = childMaterialMap.get(key);
|
List<BomNewEbomParentVO> materialGroupList = childMaterialMap.get(key);
|
||||||
if (materialGroupList.size() > 1) {
|
if (materialGroupList.size() > 1) {
|
||||||
materialGroupList.forEach(u -> {
|
Map<String, List<BomNewEbomParentVO>> m2 = ListCommonUtil.listGroupMap(materialGroupList, BomNewEbomParentVO::getProjectType);
|
||||||
u.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_6.getValue());
|
m2.forEach((mk, mv) -> {
|
||||||
|
if (mv.size() > 1) {
|
||||||
|
mv.forEach(u -> {
|
||||||
|
u.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_6.getValue());
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (ProjectTypeInputTypeEnum.ProjectTypeEnum.TYPE_Q.getValue().equals(parent.getProjectType())) {
|
if (ProjectTypeInputTypeEnum.ProjectTypeEnum.TYPE_Q.getValue().equals(parent.getProjectType())) {
|
||||||
List<BomNewEbomParentVO> qList = child.stream().filter(u -> ProjectTypeInputTypeEnum.ProjectTypeEnum.TYPE_Q.getValue().equals(u.getProjectType())).collect(Collectors.toList());
|
List<BomNewEbomParentVO> qList = child.stream().filter(u -> ProjectTypeInputTypeEnum.ProjectTypeEnum.TYPE_Q.getValue().equals(u.getProjectType())).collect(Collectors.toList());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue