Skip to content

Commit 5b9b34c

Browse files
committed
解决某些情况下 @raw 对 @having:value 中 value 中的外层表达式不生效
1 parent 7c9ca1b commit 5b9b34c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java

+10
Original file line numberDiff line numberDiff line change
@@ -2032,6 +2032,16 @@ public String parseSQLExpression(String key, String expression, boolean containR
20322032
* @return
20332033
*/
20342034
public String parseSQLExpression(String key, String expression, boolean containRaw, boolean allowAlias, String example) {
2035+
if (containRaw) {
2036+
String s = RAW_MAP.get(expression);
2037+
if ("".equals(s)) {
2038+
return expression;
2039+
}
2040+
if (s != null) {
2041+
return s;
2042+
}
2043+
}
2044+
20352045
String quote = getQuote();
20362046
int start = expression.indexOf('(');
20372047
if (start < 0) {

0 commit comments

Comments
 (0)