BUG

parent 412893ea
...@@ -102,7 +102,7 @@ public ApiResponse SetAssessType(SetAssessRequest request) ...@@ -102,7 +102,7 @@ public ApiResponse SetAssessType(SetAssessRequest request)
if (intersectList != null && intersectList.Count() > 0) if (intersectList != null && intersectList.Count() > 0)
intersectList.ForEach(t => request.Department.Remove(t)); intersectList.ForEach(t => request.Department.Remove(t));
//删除更改 //删除更改
var removeList = perforAsdataRepository.GetEntities(t => intersectList.Contains(t.Department)); var removeList = perforAsdataRepository.GetEntities(t => !intersectList.Contains(t.Department));
if (removeList != null && removeList.Count() > 0) if (removeList != null && removeList.Count() > 0)
perforAsdataRepository.RemoveRange(removeList.ToArray()); perforAsdataRepository.RemoveRange(removeList.ToArray());
} }
......
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