mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update nav filter
This commit is contained in:
parent
cb81ccc714
commit
f8efc4515c
@ -112,6 +112,7 @@ namespace SqlSugar
|
||||
}
|
||||
mapper.Sql = queryable
|
||||
.AS(tableName)
|
||||
.Filter(this.ProPertyEntity.Columns.Count(it=>it.IsPrimarykey)>1?this.ProPertyEntity.Type:null)
|
||||
.WhereIF(Navigat.WhereSql.HasValue(),Navigat.WhereSql)
|
||||
.Where($" {queryable.SqlBuilder.GetTranslationColumnName(ShorName)}.{name}={pk} ").Select(selectName).ToSql().Key;
|
||||
mapper.Sql = $" ({mapper.Sql}) ";
|
||||
|
Loading…
Reference in New Issue
Block a user