zhengcaioa/Services/HrDeptService.cs
@@ -97,7 +97,7 @@
        {
            var entity = _context.HrDepts.Find(id);
            if (entity.RecStatus != "A")
            if (entity==null || entity.RecStatus != "A")
            {
                entity = new HrDept();
            }