|
|
@@ -315,33 +315,33 @@ namespace CallCenterApi.Interface.Controllers
|
|
315
|
315
|
//删除/禁用/启用 用户
|
|
316
|
316
|
public ActionResult DelUsers(string[] ids, int state = 0)
|
|
317
|
317
|
{
|
|
318
|
|
- ActionResult res = NoToken("未知错误,请重新登录");
|
|
319
|
|
- if (Request.IsAuthenticated)
|
|
|
318
|
+ //ActionResult res = NoToken("未知错误,请重新登录");
|
|
|
319
|
+ //if (Request.IsAuthenticated)
|
|
|
320
|
+ //{
|
|
|
321
|
+ if (ids == null || ids.Length <= 0)
|
|
|
322
|
+ return Error("请选择用户");
|
|
|
323
|
+ var idStr = string.Join(",", ids);
|
|
|
324
|
+ if (string.IsNullOrEmpty(idStr))
|
|
|
325
|
+ return Error("请选择用户");
|
|
|
326
|
+ if (state == 0)
|
|
320
|
327
|
{
|
|
321
|
|
- if (ids == null || ids.Length <= 0)
|
|
322
|
|
- return Error("请选择用户");
|
|
323
|
|
- var idStr = string.Join(",", ids);
|
|
324
|
|
- if (string.IsNullOrEmpty(idStr))
|
|
325
|
|
- return Error("请选择用户");
|
|
326
|
|
- if (state == 0)
|
|
|
328
|
+ SysConfigController sys = new SysConfigController();
|
|
|
329
|
+ //话务人员限制权限判断
|
|
|
330
|
+ if (sys.IsValidSeatPermission())
|
|
327
|
331
|
{
|
|
328
|
|
- SysConfigController sys = new SysConfigController();
|
|
329
|
|
- //话务人员限制权限判断
|
|
330
|
|
- if (sys.IsValidSeatPermission())
|
|
331
|
|
- {
|
|
332
|
|
- if (sysUserAccountBll.DeleteList(idStr, state))
|
|
333
|
|
- res = Success("设置成功");
|
|
334
|
|
- else
|
|
335
|
|
- res = Error("设置失败");
|
|
336
|
|
- }
|
|
337
|
|
- res = Error("话务人员数量已超!");
|
|
|
332
|
+ if (sysUserAccountBll.DeleteList(idStr, state))
|
|
|
333
|
+ return Success("设置成功");
|
|
|
334
|
+ else
|
|
|
335
|
+ return Error("设置失败");
|
|
338
|
336
|
}
|
|
339
|
|
- if (sysUserAccountBll.DeleteList(idStr, state))
|
|
340
|
|
- res = Success("设置成功");
|
|
341
|
|
- else
|
|
342
|
|
- res = Error("设置失败");
|
|
|
337
|
+ return Error("话务人员数量已超!");
|
|
343
|
338
|
}
|
|
344
|
|
- return res;
|
|
|
339
|
+ if (sysUserAccountBll.DeleteList(idStr, state))
|
|
|
340
|
+ return Success("设置成功");
|
|
|
341
|
+ else
|
|
|
342
|
+ return Error("设置失败");
|
|
|
343
|
+ //}
|
|
|
344
|
+ //return res;
|
|
345
|
345
|
}
|
|
346
|
346
|
|
|
347
|
347
|
//[Authority]
|