Update split table

This commit is contained in:
sunkaixuan
2024-08-12 17:45:03 +08:00
parent 124c8bd09f
commit 842f9c4c88

View File

@@ -1500,7 +1500,7 @@ namespace SqlSugar
}
else
{
if (this.EntityInfo?.Type?.GetCustomAttribute<SplitTableAttribute>() != null&& this.QueryBuilder?.SelectValue?.ToString()=="*")
if (this.QueryBuilder.IsSingle()&&this.EntityInfo?.Type?.GetCustomAttribute<SplitTableAttribute>() != null&& this.QueryBuilder?.SelectValue?.ToString()=="*")
{
var columnAarray = this.Context.EntityMaintenance.GetEntityInfo<T>().Columns;
var sql = string.Empty;