Optimized code

This commit is contained in:
sunkaixuan 2023-12-27 12:43:19 +08:00
parent 6d75569c5a
commit f94d8297c8

View File

@ -1416,7 +1416,8 @@ namespace SqlSugar
var sql = ps.GetSelectValue;
if (string.IsNullOrEmpty(sql) || sql.Trim() == "*")
{
return this.Select<TResult>(expression);
this.QueryBuilder.SelectValue = null;
return this.Select<TResult>();
}
if (sql.StartsWith("*,"))
{