mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-14 18:25:03 +08:00
Update exp to sql
This commit is contained in:
@@ -178,6 +178,11 @@ namespace SqlSugar
|
|||||||
var select = copyContext.Result.GetString();
|
var select = copyContext.Result.GetString();
|
||||||
if (dic.Count > 0 && appendColumns.Count == 0)
|
if (dic.Count > 0 && appendColumns.Count == 0)
|
||||||
{
|
{
|
||||||
|
if (copyContext.Parameters?.Any()==true)
|
||||||
|
{
|
||||||
|
this.Context.Parameters.AddRange(copyContext.Parameters);
|
||||||
|
select = select.Replace("), AS", ") AS");
|
||||||
|
}
|
||||||
return select + ",@sugarIndex as sugarIndex"; ;
|
return select + ",@sugarIndex as sugarIndex"; ;
|
||||||
}
|
}
|
||||||
else if (dic.Count > 0 && appendColumns.Count > 0)
|
else if (dic.Count > 0 && appendColumns.Count > 0)
|
||||||
|
Reference in New Issue
Block a user