部门接口加上扩展属性
This commit is contained in:
@@ -95,7 +95,10 @@ public class DataBaseService : IDynamicApiController, ITransient
|
||||
//tables = tables.Where((x, i) => tables.FindIndex(z => z.Name == x.Name) == i).ToList();
|
||||
//var output = tables.Adapt<List<DatabaseTableListOutput>>();
|
||||
if (!string.IsNullOrEmpty(input.keyword))
|
||||
tables = tables.FindAll(d => d.table.ToLower().Contains(input.keyword.ToLower()) || (d.tableName.IsNotEmptyOrNull() && d.tableName.ToLower().Contains(input.keyword.ToLower())));
|
||||
{
|
||||
var keyword = input.keyword.ToLower();
|
||||
tables = tables.FindAll(d => d.table.ToLower().Contains(keyword) || (d.tableName.IsNotEmptyOrNull() && d.tableName.ToLower().Contains(keyword)));
|
||||
}
|
||||
if (tenantLink.DbType.ToLower().Equals("dm"))
|
||||
{
|
||||
GetTableCount(tables, tenantLink);
|
||||
|
||||
@@ -318,7 +318,7 @@ public class DbLinkService : IDbLinkService, IDynamicApiController, ITransient
|
||||
[NonAction]
|
||||
public async Task<DbLinkEntity> GetInfo(string id)
|
||||
{
|
||||
return await _repository.AsSugarClient().CopyNew().Queryable<DbLinkEntity>().FirstAsync(m => m.Id == id && m.DeleteMark == null);
|
||||
return await _repository.AsSugarClient().Queryable<DbLinkEntity>().FirstAsync(m => m.Id == id && m.DeleteMark == null);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user