|
|
@@ -133,7 +133,7 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
133
|
133
|
/// <param name="phone"></param>
|
|
134
|
134
|
/// <param name="usercode"></param>
|
|
135
|
135
|
/// <returns></returns>
|
|
136
|
|
- public ActionResult Sound(string phone, string usercode)
|
|
|
136
|
+ public ActionResult Sound(string phone, string usercode, int seartgroupid)
|
|
137
|
137
|
{
|
|
138
|
138
|
string sql = "";
|
|
139
|
139
|
string callstate = HttpUtility.UrlDecode(RequestString.GetQueryString("callstate"));
|
|
|
@@ -142,11 +142,20 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
142
|
142
|
string endtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
|
|
143
|
143
|
string dept = HttpUtility.UrlDecode(RequestString.GetQueryString("dept"));
|
|
144
|
144
|
string dealtype = HttpUtility.UrlDecode(RequestString.GetQueryString("dealtype"));
|
|
145
|
|
- //if (!string.IsNullOrEmpty(userModel.groupcode))
|
|
|
145
|
+
|
|
|
146
|
+ Model.T_Sys_SeatGroup groupModel = new BLL.T_Sys_SeatGroup().GetModel(seartgroupid);
|
|
|
147
|
+
|
|
|
148
|
+ if (groupModel != null)
|
|
|
149
|
+ {
|
|
|
150
|
+ if (!string.IsNullOrEmpty(groupModel.F_ZXZCode))
|
|
|
151
|
+ {
|
|
|
152
|
+ sql += " and groupcode = '" + groupModel.F_ZXZCode + "' ";
|
|
|
153
|
+ }
|
|
|
154
|
+ }
|
|
|
155
|
+ //if (!string.IsNullOrEmpty(groupcode))
|
|
146
|
156
|
//{
|
|
147
|
|
- // sql += " and groupcode = '" + userModel.groupcode + "' ";
|
|
|
157
|
+ // sql += " and groupcode = '" + groupcode + "' ";
|
|
148
|
158
|
//}
|
|
149
|
|
-
|
|
150
|
159
|
if (usercode != null && usercode.Trim() != "")
|
|
151
|
160
|
{
|
|
152
|
161
|
sql += " and UserCode='" + usercode + "'";
|