ソースを参照

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

MarkHuang 4 年 前
コミット
9f110dc7f9
1 ファイル変更2 行追加4 行削除
  1. 2 4
      src/main/java/com/diagbot/util/NeoUtil.java

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

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