fix(数据集): 数据集变量支持 between and

This commit is contained in:
taojinlong 2022-08-03 15:26:57 +08:00
parent 2ef57a33e3
commit fef0881b51

View File

@ -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())) {