forked from github/dataease
fix(数据集): 数据集变量支持 between and
This commit is contained in:
parent
2ef57a33e3
commit
fef0881b51
@ -2620,6 +2620,15 @@ public class DataSetTableService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void visit(Between between) {
|
||||||
|
if(hasVarible(between.getBetweenExpressionStart().toString()) || hasVarible(between.getBetweenExpressionEnd().toString())){
|
||||||
|
getBuffer().append(SubstitutedSql);
|
||||||
|
}else {
|
||||||
|
getBuffer().append(between.getLeftExpression()).append(" BETWEEN ").append(between.getBetweenExpressionStart()).append(" AND ").append(between.getBetweenExpressionEnd());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void visit(LikeExpression likeExpression) {
|
public void visit(LikeExpression likeExpression) {
|
||||||
if (hasVarible(likeExpression.toString())) {
|
if (hasVarible(likeExpression.toString())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user