ソースを参照

职位管理bug调整

zhengbingbing 5 年 前
コミット
f6aac8e730
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      代码/TVShoppingCallCenter_ZLJ/Controllers/System/PositionController.cs

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

@@ -213,7 +213,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
213 213
             Expression<Func<T_Sys_Position, bool>> eq = a => a.F_State == (int)EnumDelState.Enabled;
214 214
             eq = eq.And(b => b.F_Name.Equals(name));
215 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 218
             c = await _sys_positionRepository.GetCount(eq);
219 219
             return c > 0;