Commit 39985a14 by lcx

Merge branch 'feature/自定义模板抽取' into develop

parents f59f0a4e 9d7b3e78
...@@ -74,6 +74,7 @@ public void Handler(int hospitalId, per_allot allot, string groupName, bool isSi ...@@ -74,6 +74,7 @@ public void Handler(int hospitalId, per_allot allot, string groupName, bool isSi
if (hisScrips == null || !hisScrips.Any()) return; if (hisScrips == null || !hisScrips.Any()) return;
foreach (var item in hisScrips) foreach (var item in hisScrips)
{ {
logService.ReturnTheLog(allot.ID, groupName, 2, "提取数据", $"提取{item.SourceType} - {item.Category}数据", isSingle: isSingle);
HisData(allot, configs.FirstOrDefault(t => t.Id == item.ConfigId), item); HisData(allot, configs.FirstOrDefault(t => t.Id == item.ConfigId), item);
} }
} }
......
...@@ -80,6 +80,9 @@ public string Main(int allotId, int hospitalId, string email, string groupName, ...@@ -80,6 +80,9 @@ public string Main(int allotId, int hospitalId, string email, string groupName,
var dict = new Dictionary<ExDataDict, object>(); var dict = new Dictionary<ExDataDict, object>();
logService.ReturnTheLog(allotId, groupName, 3, "", 5, 1, isSingle); logService.ReturnTheLog(allotId, groupName, 3, "", 5, 1, isSingle);
queryService.ClearHistoryData(allot.ID, groupName, isSingle);
dictionaryService.Handler(hospitalId, allot, groupName, isSingle); dictionaryService.Handler(hospitalId, allot, groupName, isSingle);
var data = queryService.Handler(hospitalId, allot, groupName, isSingle, ref dict); var data = queryService.Handler(hospitalId, allot, groupName, isSingle, ref dict);
var standData = StandDataFormat(hospitalId, data); var standData = StandDataFormat(hospitalId, data);
......
...@@ -77,8 +77,6 @@ public List<ex_result> Handler(int hospitalId, per_allot allot, string groupName ...@@ -77,8 +77,6 @@ public List<ex_result> Handler(int hospitalId, per_allot allot, string groupName
}; };
var extypeIds = GetQueryScriptIds(hospitalId, ref dict); var extypeIds = GetQueryScriptIds(hospitalId, ref dict);
ClearHistoryData(allot.ID, groupName, isSingle);
var data = new List<ex_result>(); var data = new List<ex_result>();
logService.ReturnTheLog(allot.ID, groupName, 2, "提取数据", $"开始提取数据", isSingle: isSingle); logService.ReturnTheLog(allot.ID, groupName, 2, "提取数据", $"开始提取数据", isSingle: isSingle);
...@@ -157,7 +155,7 @@ private List<int> GetQueryScriptIds(int hospitalId, ref Dictionary<ExDataDict, o ...@@ -157,7 +155,7 @@ private List<int> GetQueryScriptIds(int hospitalId, ref Dictionary<ExDataDict, o
/// 清除历史抽取数据 /// 清除历史抽取数据
/// </summary> /// </summary>
/// <param name="allotId"></param> /// <param name="allotId"></param>
private void ClearHistoryData(int allotId, string groupName, bool isSingle) public void ClearHistoryData(int allotId, string groupName, bool isSingle)
{ {
logService.ReturnTheLog(allotId, groupName, 2, "清除数据", $"开始清除历史提取数据", 1, isSingle); logService.ReturnTheLog(allotId, groupName, 2, "清除数据", $"开始清除历史提取数据", 1, isSingle);
perallotRepository.ClearResultData(allotId); perallotRepository.ClearResultData(allotId);
......
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