diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/interceptor/BaseConditionFilterAspect.java b/backend/services/system-setting/src/main/java/io/metersphere/system/interceptor/BaseConditionFilterAspect.java index f1d3d5ccb0..26521c2e31 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/interceptor/BaseConditionFilterAspect.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/interceptor/BaseConditionFilterAspect.java @@ -66,7 +66,8 @@ public class BaseConditionFilterAspect { } List validConditions = getValidConditions(combineSearch.getConditions()); validConditions.forEach(item -> { - if (item.getValue() != null && item.getValue() instanceof String strValue) { + if (item.getValue() != null && item.getValue() instanceof String strValue + && !StringUtils.equals(item.getOperator(), CombineCondition.CombineConditionOperator.EQUALS.name())) { // 转义 mysql 的特殊字符 item.setValue(BaseCondition.transferKeyword(strValue)); }