v3.4.6
This commit is contained in:
@@ -13,7 +13,6 @@ using JNPF.Systems.Entitys.System;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
using SqlSugar;
|
||||
|
||||
namespace JNPF.Systems;
|
||||
@@ -43,21 +42,17 @@ public class DbLinkService : IDbLinkService, IDynamicApiController, ITransient
|
||||
/// </summary>
|
||||
private readonly IDataBaseManager _dataBaseManager;
|
||||
|
||||
private readonly IMemoryCache _memCache;
|
||||
|
||||
/// <summary>
|
||||
/// 初始化一个<see cref="DbLinkService"/>类型的新实例.
|
||||
/// </summary>
|
||||
public DbLinkService(
|
||||
ISqlSugarRepository<DbLinkEntity> repository,
|
||||
IDictionaryDataService dictionaryDataService,
|
||||
IDataBaseManager dataBaseManager,
|
||||
IMemoryCache memCache)
|
||||
IDataBaseManager dataBaseManager)
|
||||
{
|
||||
_repository = repository;
|
||||
_dictionaryDataService = dictionaryDataService;
|
||||
_dataBaseManager = dataBaseManager;
|
||||
_memCache = memCache;
|
||||
}
|
||||
|
||||
#region GET
|
||||
@@ -318,7 +313,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.GetFirstAsync(m => m.Id == id && m.DeleteMark == null);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user