forked from github/dataease
fix: 解析sql 错误
This commit is contained in:
parent
60512cbdd3
commit
a8c1a189fb
@ -1169,8 +1169,12 @@ public class DataSetTableService {
|
|||||||
binaryExpression = (BinaryExpression) expr;
|
binaryExpression = (BinaryExpression) expr;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
if (binaryExpression != null && !(binaryExpression.getLeftExpression() instanceof BinaryExpression) && !(binaryExpression.getRightExpression() instanceof BinaryExpression) && hasVariable(binaryExpression.toString())) {
|
if (binaryExpression != null) {
|
||||||
stringBuilder.append(SubstitutedSql);
|
if (!(binaryExpression.getLeftExpression() instanceof BinaryExpression) && !(binaryExpression.getLeftExpression() instanceof InExpression) && hasVariable(binaryExpression.getRightExpression().toString())) {
|
||||||
|
stringBuilder.append(SubstitutedSql);
|
||||||
|
}else {
|
||||||
|
expr.accept(getExpressionDeParser(stringBuilder));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
expr.accept(getExpressionDeParser(stringBuilder));
|
expr.accept(getExpressionDeParser(stringBuilder));
|
||||||
}
|
}
|
||||||
|
@ -463,14 +463,6 @@
|
|||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
{{ $t('commons.params_value') }}
|
{{ $t('commons.params_value') }}
|
||||||
<el-tooltip
|
|
||||||
class="item"
|
|
||||||
effect="dark"
|
|
||||||
:content="$t('commons.parameter_effect')"
|
|
||||||
placement="top"
|
|
||||||
>
|
|
||||||
<svg-icon icon-class="icon_info_filled" />
|
|
||||||
</el-tooltip>
|
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
Loading…
Reference in New Issue
Block a user