Explorar el Código

替换表达式属性

0027005599 hace 2 años
padre
commit
ef1d7894d1

+ 1 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/ruleengine/SPELUtil.java

@@ -173,7 +173,7 @@ public class SPELUtil {
             if (null == replaceValue) {
             if (null == replaceValue) {
                 replaceValue = "[未找到该属性]";
                 replaceValue = "[未找到该属性]";
             }
             }
-            condStr = condStr.replace(condStrParam, replaceValue.toString());
+            condStr = condStr.replace("#"+condStrParam, replaceValue.toString());
         }
         }
         return condStr;
         return condStr;
     }
     }