mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-20 00:44:19 +08:00
Update exp to sql
This commit is contained in:
parent
e297e9f3ea
commit
425a78694a
@ -136,7 +136,14 @@ namespace SqlSugar
|
||||
MapperSql.Sql = $"( {queryable.ToSql().Key} ) ";
|
||||
if (isAny)
|
||||
{
|
||||
MapperSql.Sql = $" EXISTS( {MapperSql.Sql}) ";
|
||||
if (MapperSql.Sql.StartsWith("( ") && MapperSql.Sql.EndsWith(" ) "))
|
||||
{
|
||||
MapperSql.Sql = $" EXISTS {MapperSql.Sql} ";
|
||||
}
|
||||
else
|
||||
{
|
||||
MapperSql.Sql = $" EXISTS( {MapperSql.Sql}) ";
|
||||
}
|
||||
|
||||
}
|
||||
return MapperSql;
|
||||
|
Loading…
Reference in New Issue
Block a user