|
@@ -5918,13 +5918,13 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
String[] ruleArray = content.trim().split(";");
|
|
|
for (String rule : ruleArray) {
|
|
|
if (rule.startsWith("else")) {
|
|
|
- String[] parts = rule.split("->");
|
|
|
+ String[] parts = rule.split("!");
|
|
|
String[] action = parts[1].split("=");
|
|
|
key = action[0];
|
|
|
value = action[1];
|
|
|
break;
|
|
|
}
|
|
|
- String[] parts = rule.split("->");
|
|
|
+ String[] parts = rule.split("!");
|
|
|
String[] action = parts[1].split("=");
|
|
|
Expression parse = Expression.parse(parts[0] + "?1:0");
|
|
|
Object data = parse.calculate(currentMap);
|