mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 16:31:11 +08:00
fix(数据集): 数据集动态参数使用 BETWEEN 报错
This commit is contained in:
@@ -2829,9 +2829,11 @@ public class DataSetTableService {
|
||||
private void visitBinaryExpr(BinaryExpression expr, String operator) {
|
||||
boolean hasSubBinaryExpression = false;
|
||||
if(expr.getLeftExpression() instanceof Parenthesis){
|
||||
Parenthesis parenthesis = (Parenthesis)expr.getLeftExpression();
|
||||
BinaryExpression leftBinaryExpression = (BinaryExpression)parenthesis.getExpression();
|
||||
hasSubBinaryExpression = leftBinaryExpression instanceof AndExpression || leftBinaryExpression instanceof OrExpression;
|
||||
try {
|
||||
Parenthesis parenthesis = (Parenthesis)expr.getLeftExpression();
|
||||
BinaryExpression leftBinaryExpression = (BinaryExpression)parenthesis.getExpression();
|
||||
hasSubBinaryExpression = leftBinaryExpression instanceof AndExpression || leftBinaryExpression instanceof OrExpression;
|
||||
}catch (Exception e){}
|
||||
}
|
||||
if(expr.getLeftExpression() instanceof BinaryExpression){
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user