소스 검색

更新判断节点和关系是否逻辑存在的方法

MarkHuang 4 년 전
부모
커밋
11527a63b1
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/main/java/com/diagbot/util/NeoUtil.java

+ 4 - 2
src/main/java/com/diagbot/util/NeoUtil.java

@@ -271,7 +271,8 @@ public class NeoUtil {
         if (null==relationship) {
             return false;
         }
-        else if (null!=relationship.getStatus() && relationship.getStatus()==1) {
+        else if (null==relationship.getStatus() ||
+                (null!=relationship.getStatus() && relationship.getStatus()==1)) {
             return true;
         }
         else {
@@ -286,7 +287,8 @@ public class NeoUtil {
         if (null==node) {
             return false;
         }
-        else if (null!=node.getStatus() && node.getStatus()==1) {
+        else if (null==node.getStatus() ||
+                (null!=node.getStatus() && node.getStatus()==1)) {
             return true;
         }
         else {