Commit b9f0d4b5 authored by liudong1993's avatar liudong1993

1

parent 5d1180d2
......@@ -341,7 +341,7 @@ namespace REBORN.Module.DMCModule
if (!string.IsNullOrEmpty(model.DmcName))
{
var list = dictvalueRepository.GetList(new RB_Dictvalue_Extend() { RB_Group_id = model.RB_Group_Id ?? 0, DictKey = "Contract_Dmc", Name = model.DmcName });
if (!list.Any(x => x.Content == model.DmcName))
if (!list.Any(x => x.Name == model.DmcName))
{
//新增
dictvalueRepository.Insert(new RB_Dictvalue()
......@@ -389,7 +389,7 @@ namespace REBORN.Module.DMCModule
if (flag && !string.IsNullOrEmpty(model.DmcName)) {
//添加地接社
var list = dictvalueRepository.GetList(new RB_Dictvalue_Extend() { RB_Group_id = model.RB_Group_Id ?? 0, DictKey = "Contract_Dmc", Name = model.DmcName });
if (!list.Any(x => x.Content == model.DmcName))
if (!list.Any(x => x.Name == model.DmcName))
{
//新增
dictvalueRepository.Insert(new RB_Dictvalue()
......
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