diff --git a/linkis-computation-governance/linkis-manager/linkis-manager-common/src/main/java/org/apache/linkis/manager/common/entity/resource/SpecialResource.java b/linkis-computation-governance/linkis-manager/linkis-manager-common/src/main/java/org/apache/linkis/manager/common/entity/resource/SpecialResource.java index f5f838b60a..f7934b0bc4 100644 --- a/linkis-computation-governance/linkis-manager/linkis-manager-common/src/main/java/org/apache/linkis/manager/common/entity/resource/SpecialResource.java +++ b/linkis-computation-governance/linkis-manager/linkis-manager-common/src/main/java/org/apache/linkis/manager/common/entity/resource/SpecialResource.java @@ -293,11 +293,11 @@ public boolean equalsTo(Resource r) { if (v instanceof Integer && rsV instanceof Integer) { return (int) v != (int) rsV; } else if (v instanceof Double && rsV instanceof Double) { - return BigDecimal.valueOf((double) v).equals(BigDecimal.valueOf((double) rsV)); + return !BigDecimal.valueOf((double) v).equals(BigDecimal.valueOf((double) rsV)); } else if (v instanceof Long && rsV instanceof Long) { return (long) v != (long) rsV; } else if (v instanceof Float && rsV instanceof Float) { - return BigDecimal.valueOf((float) v).equals(BigDecimal.valueOf((float) rsV)); + return !BigDecimal.valueOf((float) v).equals(BigDecimal.valueOf((float) rsV)); } else if (v instanceof Short && rsV instanceof Short) { return (short) v != (short) rsV; } else {