Browse Source

防空值处理

yingp 8 years ago
parent
commit
a82b3a1bed
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/uas/erp/database/domain/Master.java

+ 2 - 1
src/main/java/com/uas/erp/database/domain/Master.java

@@ -154,6 +154,7 @@ public class Master implements Connectable, Comparable<Master>{
     }
 
     public boolean isCloudEnabled() {
-        return 1 == getMa_b2benable() && null != getMa_uu() && !StringUtils.isEmpty(getMa_accesssecret());
+        return null != getMa_b2benable() && 1 == getMa_b2benable() &&
+                null != getMa_uu() && !StringUtils.isEmpty(getMa_accesssecret());
     }
 }