We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cf6890 commit 92c2b42Copy full SHA for 92c2b42
paoding-rose-jade/src/main/java/net/paoding/rose/jade/statement/expression/impl/ExprUnit.java
@@ -37,9 +37,13 @@ public boolean isValid(ExprResolver exprResolver) {
37
public void fill(ExqlContext exqlContext, ExprResolver exprResolver) throws Exception {
38
39
// 解释表达式内容
40
- Object obj = exprResolver.executeExpr(expr);
+ Object value = exprResolver.executeExpr(expr);
41
42
+ if (value instanceof Enum) {
43
+ value = ((Enum<?>) value).name();
44
+ }
45
+
46
// 输出转义的对象内容
- exqlContext.fillValue(obj);
47
+ exqlContext.fillValue(value);
48
}
49
0 commit comments