新增生产工单排产功能接口

This commit is contained in:
DEVICE8\12494
2023-04-19 13:38:51 +08:00
parent edf4e9310d
commit 7bd4d48b63
16 changed files with 461 additions and 11 deletions

View File

@@ -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