Commit 282c36e4 by guanzhenshan

解决bug

parent d861f0f1
...@@ -576,11 +576,15 @@ namespace Bailun.DC.Services ...@@ -576,11 +576,15 @@ namespace Bailun.DC.Services
//删除数据 //删除数据
foreach (var item in listDelete) foreach (var item in listDelete)
{ {
var objList = list.Where(a => a.suppliername == item.suppliername); var objList = list.Where(a => a.suppliername == item.suppliername).ToList();
foreach (var o in objList) if(objList.Count>0)
{ {
list.Remove(o); for (var i = 0; i < objList.Count;i++)
{
list.Remove(objList[i]);
}
} }
} }
......
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