feat:修改nl2sql功能
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ def apply_row_scope(sql: str, permission: dict, data_scope: dict | None) -> str:
|
||||
continue
|
||||
values = _values(data_scope, scope["type"])
|
||||
condition = exp.In(
|
||||
this=exp.column(scope["column"]),
|
||||
this=exp.column(scope["column"], table=table.alias_or_name),
|
||||
expressions=[exp.Literal.number(value) for value in values],
|
||||
)
|
||||
statement = statement.where(condition)
|
||||
|
||||
Reference in New Issue
Block a user