1.异常判断7,9
This commit is contained in:
parent
dfe9dd80ed
commit
e087fdb4fc
|
|
@ -134,7 +134,7 @@ public class EbomInitProjectType {
|
||||||
sResult = sameLevelChild.stream().filter(u -> u.getMaterialCategoryCode().startsWith("2005") || u.getMaterialCategoryCode().startsWith("2006")).collect(Collectors.toList());
|
sResult = sameLevelChild.stream().filter(u -> u.getMaterialCategoryCode().startsWith("2005") || u.getMaterialCategoryCode().startsWith("2006")).collect(Collectors.toList());
|
||||||
if (CollUtil.isNotEmpty(sResult)) {
|
if (CollUtil.isNotEmpty(sResult)) {
|
||||||
List<String> projectType = sResult.stream().filter(u->StrUtil.isNotBlank(u.getProjectType())).map(u -> u.getProjectType()).distinct().collect(Collectors.toList());
|
List<String> projectType = sResult.stream().filter(u->StrUtil.isNotBlank(u.getProjectType())).map(u -> u.getProjectType()).distinct().collect(Collectors.toList());
|
||||||
if (projectType.size() == 1 && projectType.get(0).equals("Q")) {
|
if (projectType.size() == 1 && projectType.get(0).equals("Q") && !ProjectTypeInputTypeEnum.MANUAL_INPUT.equalsValue(child.getProjectTypeInputType())) {
|
||||||
child.setProjectType("Q");
|
child.setProjectType("Q");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -161,7 +161,7 @@ public class EbomInitProjectType {
|
||||||
for (BomNewEbomParentVO v : sResultProjectL) {
|
for (BomNewEbomParentVO v : sResultProjectL) {
|
||||||
lResult = lResult & projectTypeEquals(getChilds(v.getBomRowId()), Sets.newHashSet("F", "Q"));
|
lResult = lResult & projectTypeEquals(getChilds(v.getBomRowId()), Sets.newHashSet("F", "Q"));
|
||||||
}
|
}
|
||||||
if ((resultNo1004 & lResult) == 1) {
|
if ((resultNo1004 & lResult) == 1 && !ProjectTypeInputTypeEnum.MANUAL_INPUT.equalsValue(child.getProjectTypeInputType())) {
|
||||||
child.setProjectType("F");
|
child.setProjectType("F");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue