|
|
@@ -11,7 +11,7 @@ using System.Web.Mvc;
|
|
11
|
11
|
|
|
12
|
12
|
namespace CallCenterApi.Interface.Controllers.customer
|
|
13
|
13
|
{
|
|
14
|
|
- //[Authority]
|
|
|
14
|
+ [Authority]
|
|
15
|
15
|
public class AddressBookController : BaseController
|
|
16
|
16
|
{
|
|
17
|
17
|
BLL.T_Cus_AddressBook bll = new BLL.T_Cus_AddressBook();
|
|
|
@@ -437,30 +437,14 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
437
|
437
|
/// --3承办单位 (网络单位WLDW)
|
|
438
|
438
|
/// --4调度组(调度专员ZXLD)
|
|
439
|
439
|
/// <returns></returns>
|
|
440
|
|
- public ActionResult GetAppUserAccountList(int rolecodeid = 0)
|
|
|
440
|
+ public ActionResult GetAppUserAccountList(int roleid = 0)
|
|
441
|
441
|
{
|
|
442
|
|
- string rolecodes = "";
|
|
443
|
442
|
DataTable dt = new DataTable();
|
|
444
|
|
- string sql = " 1=1 and F_DeleteFlag=0 and F_RoleId NOT IN (SELECT F_RoleId FROM dbo.T_Sys_RoleInfo WHERE F_RoleCode IN ('GLY','ZXLDGLY')) ";
|
|
445
|
|
- if (rolecodeid == 1)
|
|
446
|
|
- {
|
|
447
|
|
- rolecodes = "'ZXLD'";
|
|
448
|
|
- }
|
|
449
|
|
- if (rolecodeid == 2)
|
|
450
|
|
- {
|
|
451
|
|
- rolecodes = "'ZXHWY','ZXBZ','ZXBZ'";
|
|
452
|
|
- }
|
|
453
|
|
- if (rolecodeid == 3)
|
|
454
|
|
- {
|
|
455
|
|
- rolecodes = "'WLDW'";
|
|
456
|
|
- }
|
|
457
|
|
- if (rolecodeid == 4)
|
|
458
|
|
- {
|
|
459
|
|
- rolecodes = "'ZXLD'";
|
|
460
|
|
- }
|
|
461
|
|
- if (!string.IsNullOrWhiteSpace(rolecodes))
|
|
|
443
|
+ string sql = " 1=1 and F_DeleteFlag=0 ";
|
|
|
444
|
+
|
|
|
445
|
+ if (roleid>0)
|
|
462
|
446
|
{
|
|
463
|
|
- sql += $" and (F_RoleId IN (SELECT F_RoleId FROM dbo.T_Sys_RoleInfo WHERE F_RoleCode IN ({rolecodes}))) ";
|
|
|
447
|
+ sql += $" and F_RoleId = {roleid} ";
|
|
464
|
448
|
}
|
|
465
|
449
|
List<Model.T_Sys_UserAccount> modelList = bllUser.GetModelList(sql);
|
|
466
|
450
|
|