|
|
@@ -14,7 +14,7 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
14
|
14
|
public class CallrecordsController : BaseController
|
|
15
|
15
|
{
|
|
16
|
16
|
//获取通话记录列表
|
|
17
|
|
- public ActionResult GetList(string phone, string usercode)
|
|
|
17
|
+ public ActionResult GetList(string phone, string usercode,int type=0)
|
|
18
|
18
|
{
|
|
19
|
19
|
//ActionResult res = NoToken("未知错误,请重新登录");
|
|
20
|
20
|
//if (Request.IsAuthenticated)
|
|
|
@@ -135,6 +135,18 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
135
|
135
|
{
|
|
136
|
136
|
sql += " and CallType='" + calltype + "'";
|
|
137
|
137
|
}
|
|
|
138
|
+ if (type > 0)
|
|
|
139
|
+ {
|
|
|
140
|
+ if (!string.IsNullOrEmpty (GetConverTelephone(type)) )
|
|
|
141
|
+ {
|
|
|
142
|
+ sql += " and CallNumber in (" + GetConverTelephone(type) + ")";
|
|
|
143
|
+ }
|
|
|
144
|
+ else
|
|
|
145
|
+ {
|
|
|
146
|
+ return Success("暂无记录");
|
|
|
147
|
+ }
|
|
|
148
|
+
|
|
|
149
|
+ }
|
|
138
|
150
|
if (starttime.Trim() != "")
|
|
139
|
151
|
{
|
|
140
|
152
|
sql += " and datediff(day,BeginTime,'" + starttime + "')<=0 ";
|
|
|
@@ -143,6 +155,7 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
143
|
155
|
{
|
|
144
|
156
|
sql += " and datediff(day,BeginTime,'" + endtime + "')>=0 ";
|
|
145
|
157
|
}
|
|
|
158
|
+
|
|
146
|
159
|
|
|
147
|
160
|
if (strpageindex.Trim() != "")
|
|
148
|
161
|
{
|
|
|
@@ -206,7 +219,18 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
206
|
219
|
|
|
207
|
220
|
return Content(obj.ToJson());
|
|
208
|
221
|
}
|
|
|
222
|
+ /// <summary>
|
|
|
223
|
+ /// 获取三方通话或一键转接号码
|
|
|
224
|
+ /// </summary>
|
|
|
225
|
+ /// <returns></returns>
|
|
|
226
|
+ public string GetConverTelephone(int type)
|
|
|
227
|
+ {
|
|
|
228
|
+ string str = string.Empty;
|
|
|
229
|
+
|
|
|
230
|
+ str = "select F_Telephone from T_Con_Conversation where F_IsDelete=0 and F_Type= "+ type;
|
|
209
|
231
|
|
|
|
232
|
+ return str;
|
|
|
233
|
+ }
|
|
210
|
234
|
//通话记录导出
|
|
211
|
235
|
public ActionResult GetListExpt(string phone, string usercode)
|
|
212
|
236
|
{
|