Commit 1cfac1b2 by 李承祥

抽取Id保存

parent a925574f
...@@ -253,7 +253,7 @@ public List<mod_item> AddItem(ItemListRequest request) ...@@ -253,7 +253,7 @@ public List<mod_item> AddItem(ItemListRequest request)
list.ForEach(t => list.ForEach(t =>
{ {
t.ModuleId = entity.Id; t.ModuleId = entity.Id;
t.ExtractId = entity.ExtractId; //t.ExtractId = entity.ExtractId;
t.ReadOnly = 0; t.ReadOnly = 0;
}); });
if (!perforModitemRepository.AddRange(list.ToArray())) if (!perforModitemRepository.AddRange(list.ToArray()))
...@@ -275,6 +275,7 @@ public mod_item EditItem(mod_item entity) ...@@ -275,6 +275,7 @@ public mod_item EditItem(mod_item entity)
item.FactorValue1 = entity.FactorValue1; item.FactorValue1 = entity.FactorValue1;
item.FactorValue2 = entity.FactorValue2; item.FactorValue2 = entity.FactorValue2;
item.FactorValue3 = entity.FactorValue3; item.FactorValue3 = entity.FactorValue3;
item.ExtractId = entity.ExtractId;
item.SelectionRange = entity.SelectionRange; item.SelectionRange = entity.SelectionRange;
if (!perforModitemRepository.Update(item)) if (!perforModitemRepository.Update(item))
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