|
|
@@ -166,7 +166,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
|
|
166
|
166
|
return Error("请选择部门");
|
|
167
|
167
|
if (string.IsNullOrWhiteSpace(name))
|
|
168
|
168
|
return Error("团队名称不能为空");
|
|
169
|
|
- if (await GetExistByNameAsync(name, deptid, 0))
|
|
|
169
|
+ if (await GetExistByNameAsync(name, deptid, id))
|
|
170
|
170
|
return Error("团队名称不能重复,请重新输入!");
|
|
171
|
171
|
#endregion
|
|
172
|
172
|
|
|
|
@@ -229,7 +229,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
|
|
229
|
229
|
eq = eq.And(b => b.F_Name.Equals(name));
|
|
230
|
230
|
eq = eq.And(b => b.F_DeptId.Equals(deptid));
|
|
231
|
231
|
if (id > 0)
|
|
232
|
|
- eq = eq.Or(b => b.F_Id != id);
|
|
|
232
|
+ eq = eq.And(b => b.F_Id != id);
|
|
233
|
233
|
|
|
234
|
234
|
c = await _sys_deptteamRepository.GetCount(eq);
|
|
235
|
235
|
return c > 0;
|