接口过滤器增加释放数据库连接

This commit is contained in:
2025-01-06 17:27:08 +08:00
parent bc45dce29e
commit a40025fb73
2 changed files with 2 additions and 1 deletions
@@ -670,7 +670,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
item.PipeLineMatId = pipeLineMat.First().PipeLineMatId;
BLL.PipelineMatService.UpdatePipeLineMat(item);
}
BLL.HJGL_PipelineComponentService.SyncPipelineComponentByMatId(item.PipeLineMatId);
BLL.HJGL_PipelineComponentService.SyncPipelineComponentByMatId(item.PipeLineMatId);
}
}
}
@@ -95,6 +95,7 @@ namespace WebAPI.Filter
{
if (BLL.Funs.DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId))
{
BLL.Funs.DBList[System.Threading.Thread.CurrentThread.ManagedThreadId].Dispose();
BLL.Funs.DBList.Remove(System.Threading.Thread.CurrentThread.ManagedThreadId);
}