新增生产工单排产功能接口
This commit is contained in:
@@ -318,12 +318,14 @@ public class DbLinkService : IDbLinkService, IDynamicApiController, ITransient
|
||||
[NonAction]
|
||||
public async Task<DbLinkEntity> GetInfo(string id)
|
||||
{
|
||||
var model = await _memCache.GetOrCreateAsync($"DbLink_{id}", async entry =>
|
||||
{
|
||||
//entry.AbsoluteExpiration = DateTime.Now.AddMinutes(60);
|
||||
//entry.SlidingExpiration = TimeSpan.FromSeconds(-1);
|
||||
return await _repository.AsSugarClient().CopyNew().Queryable<DbLinkEntity>().FirstAsync(m => m.Id == id && m.DeleteMark == null);
|
||||
});
|
||||
//modified by ly on 20230417
|
||||
var model = await _repository.AsSugarClient().CopyNew().Queryable<DbLinkEntity>().FirstAsync(m => m.Id == id && m.DeleteMark == null);
|
||||
//await _memCache.GetOrCreateAsync($"DbLink_{id}", async entry =>
|
||||
//{
|
||||
// //entry.AbsoluteExpiration = DateTime.Now.AddMinutes(60);
|
||||
// //entry.SlidingExpiration = TimeSpan.FromSeconds(-1);
|
||||
// return await _repository.AsSugarClient().CopyNew().Queryable<DbLinkEntity>().FirstAsync(m => m.Id == id && m.DeleteMark == null);
|
||||
//});
|
||||
return model;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user