Commit b6f180f4 by Licx

科室字典修改行政、特殊科室

parent a0bd3be4
......@@ -207,7 +207,9 @@ public IEnumerable<DeptdicResponse> GetDepartments(int allotId)
Deptdic GetDeptdic(List<per_dept_dic> dics, string department, string hISDeptName, UnitType unitType, string source = "")
{
var dic = dics.FirstOrDefault(group => group.Department == department && group.HISDeptName == hISDeptName && group.UnitType == unitType.ToString() && group.Source == source);
var dic = dics.FirstOrDefault(group => group.Department == department && group.HISDeptName == hISDeptName
&& UnitTypeUtil.IsEqualsUnitType(group.UnitType, unitType.ToString())
&& (group.Source ?? "") == source);
//if (dic == null)
// dic = dics.FirstOrDefault(group => group.Department == department && group.HISDeptName == hISDeptName && group.UnitType == unitType.ToString());
if (dic == null) return new Deptdic() { IsVerify = 1 };
......
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