forked from github/dataease
Merge pull request #4869 from dataease/pr@dev@fixextratdata
fix: 解析sql 错误
This commit is contained in:
commit
17a461ab8d
@ -1169,8 +1169,12 @@ public class DataSetTableService {
|
||||
binaryExpression = (BinaryExpression) expr;
|
||||
} catch (Exception e) {
|
||||
}
|
||||
if (binaryExpression != null && !(binaryExpression.getLeftExpression() instanceof BinaryExpression) && !(binaryExpression.getRightExpression() instanceof BinaryExpression) && hasVariable(binaryExpression.toString())) {
|
||||
stringBuilder.append(SubstitutedSql);
|
||||
if (binaryExpression != null) {
|
||||
if (!(binaryExpression.getLeftExpression() instanceof BinaryExpression) && !(binaryExpression.getLeftExpression() instanceof InExpression) && hasVariable(binaryExpression.getRightExpression().toString())) {
|
||||
stringBuilder.append(SubstitutedSql);
|
||||
}else {
|
||||
expr.accept(getExpressionDeParser(stringBuilder));
|
||||
}
|
||||
} else {
|
||||
expr.accept(getExpressionDeParser(stringBuilder));
|
||||
}
|
||||
|
@ -463,14 +463,6 @@
|
||||
>
|
||||
<template #header>
|
||||
{{ $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 slot-scope="scope">
|
||||
<el-input
|
||||
|
Loading…
Reference in New Issue
Block a user