Commit 4f68ede6 by ruyun.zhang@suvalue.com

Merge branch 'feature/无法删除科室字典部分数据' into develop

parents 3f33494a e7227bf7
...@@ -464,8 +464,10 @@ public bool UpdateDeptDic(DeptdicResponse request) ...@@ -464,8 +464,10 @@ public bool UpdateDeptDic(DeptdicResponse request)
/// <returns></returns> /// <returns></returns>
public bool DeleteDeptDic(DeptdicResponse request) public bool DeleteDeptDic(DeptdicResponse request)
{ {
var deptdics = perdeptdicRepository.GetEntities(t => (t.HISDeptName ?? "") == request.HISDeptName if (request == null)
&& (t.Department ?? "") == request.Department && t.HospitalId == request.HospitalId); throw new PerformanceException("科室记录不存在!");
var deptdics = perdeptdicRepository.GetEntities(t => t.HISDeptName == request.HISDeptName && t.Department == request.Department && t.HospitalId == request.HospitalId);
if (deptdics == null || !deptdics.Any()) if (deptdics == null || !deptdics.Any())
throw new PerformanceException("科室记录不存在!"); throw new PerformanceException("科室记录不存在!");
......
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