Procházet zdrojové kódy

职位管理bug调整

zhengbingbing %!s(int64=5) %!d(string=před) roky
rodič
revize
f6aac8e730

+ 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;