提取标准科室

parent 647e5188
...@@ -305,7 +305,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re ...@@ -305,7 +305,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
dict.ForEach(t => dict.ForEach(t =>
{ {
t.Department = WriteDataHelper.HasValue(t.HISDeptName, t.Department); t.Department = WriteDataHelper.HasValue(t.Department, t.HISDeptName);
}); });
var data = results.GroupJoin(dict, outer => new { Department = outer.Department }, inner => new { Department = inner.HISDeptName }, (outer, inner) => new { outer, inner }) var data = results.GroupJoin(dict, outer => new { Department = outer.Department }, inner => new { Department = inner.HISDeptName }, (outer, inner) => new { outer, inner })
...@@ -347,7 +347,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re ...@@ -347,7 +347,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
EName = t.FirstOrDefault(w => !string.IsNullOrEmpty(w.EName))?.EName EName = t.FirstOrDefault(w => !string.IsNullOrEmpty(w.EName))?.EName
}); });
return groupdata.ToList(); return groupdata.Where(w => w.Value.HasValue && w.Value != 0).ToList();
} }
private void UpdateAllot(IDbConnection connection, per_allot allot) private void UpdateAllot(IDbConnection connection, per_allot allot)
......
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