Commit 0f9af49f by Licx

提取前校验数据时清理数据库连接池

parent b365a25e
...@@ -763,6 +763,7 @@ public string Judge(int allotId, int hospitalId, int useTemplate, ref bool isSin ...@@ -763,6 +763,7 @@ public string Judge(int allotId, int hospitalId, int useTemplate, ref bool isSin
List<cof_drugtype> drugTypeList = new List<cof_drugtype>(); List<cof_drugtype> drugTypeList = new List<cof_drugtype>();
string defaultSource = "住院", defauleUnittype = UnitType.医生组.ToString(); string defaultSource = "住院", defauleUnittype = UnitType.医生组.ToString();
queryService.ClearConnectionPools();
foreach (var scr in scripts) foreach (var scr in scripts)
{ {
var conf = hosConfig.FirstOrDefault(t => t.Id == scr.ConfigId); var conf = hosConfig.FirstOrDefault(t => t.Id == scr.ConfigId);
......
...@@ -458,7 +458,6 @@ public IEnumerable<T> QueryData<T>(sys_hospitalconfig config, string execsql, pe ...@@ -458,7 +458,6 @@ public IEnumerable<T> QueryData<T>(sys_hospitalconfig config, string execsql, pe
logService.ReturnTheLog(allot.ID, allot.ID.ToString(), 2, "SQL执行错误", ex.Message, 3, isSingle); logService.ReturnTheLog(allot.ID, allot.ID.ToString(), 2, "SQL执行错误", ex.Message, 3, isSingle);
throw; throw;
} }
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment