zhengbingbing лет назад: 5
Родитель
Сommit
f6aac8e730
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      代码/TVShoppingCallCenter_ZLJ/Controllers/System/PositionController.cs

+ 1 - 1
代码/TVShoppingCallCenter_ZLJ/Controllers/System/PositionController.cs

213
             Expression<Func<T_Sys_Position, bool>> eq = a => a.F_State == (int)EnumDelState.Enabled;
213
             Expression<Func<T_Sys_Position, bool>> eq = a => a.F_State == (int)EnumDelState.Enabled;
214
             eq = eq.And(b => b.F_Name.Equals(name));
214
             eq = eq.And(b => b.F_Name.Equals(name));
215
             if (id > 0)
215
             if (id > 0)
216
-                eq = eq.Or(b => b.F_Id != id); 
216
+                eq = eq.And(b => b.F_Id != id); 
217
 
217
 
218
             c = await _sys_positionRepository.GetCount(eq);
218
             c = await _sys_positionRepository.GetCount(eq);
219
             return c > 0;
219
             return c > 0;