Browse Source

增强逻辑

chengyao 4 years ago
parent
commit
4a7255a8c1

+ 1 - 1
structure-center/src/main/java/com/lantone/structure/ai/process/EntityProcessEZaAll.java

@@ -38,7 +38,7 @@ public class EntityProcessEZaAll extends EntityProcess {
             List<Lemma> uprightType = createEntityTree(aiOut, EntityEnum.UPRIGHTTYPE.toString());
             if(ListUtil.isNotEmpty(uprightType)){
                 long count = uprightType.stream().filter(obj -> EntityEnum.UPRIGHTTYPE.toString().equals(obj.getProperty())).count();
-                if(count>0){
+                if(count>0 && uprightType.size() == count){
                     development.setName(EntityEnum.UPRIGHTTYPE.toString());
                 }
             }