Commit 991f1447 by Licx

提取数据标准科室信息时,IsOrgDepartment的判断进行修改,只让科室显示,不影响核算单元的获取

parent 0142f2e3
...@@ -339,13 +339,11 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_script> sc ...@@ -339,13 +339,11 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_script> sc
#endregion #endregion
var dept = !string.IsNullOrEmpty(t.inner.FirstOrDefault(exp)?.Department) ? t.inner.FirstOrDefault(exp)?.Department : t.outer.Department; var dept = !string.IsNullOrEmpty(t.inner.FirstOrDefault(exp)?.Department) ? t.inner.FirstOrDefault(exp)?.Department : t.outer.Department;
if (scripts.Any(w => w.TypeId == t.outer.TypeId && w.IsOrgDepartment == 1))
dept = t.outer.Department;
return new ExtractTransDto return new ExtractTransDto
{ {
SheetName = t.outer.Source, SheetName = t.outer.Source,
Department = dept, Department = scripts.Any(w => w.TypeId == t.outer.TypeId && w.IsOrgDepartment == 1) ? t.outer.Department : dept,
Category = t.outer.Category, Category = t.outer.Category,
DoctorName = t.outer.DoctorName, DoctorName = t.outer.DoctorName,
PersonnelNumber = t.outer.PersonnelNumber, PersonnelNumber = t.outer.PersonnelNumber,
......
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