zhangkun лет назад: 5
Родитель
Сommit
31ad468b08

+ 14 - 6
codegit/CallCenterApi/CallCenterApi.BLL/T_Rec_RegRecordsCallOut.cs

@@ -51,9 +51,9 @@ namespace CallCenterApi.BLL
51 51
         /// <summary>
52 52
         /// 更新数据状态
53 53
         /// </summary>
54
-        public bool Update(string id)
54
+        public bool Update(string id,string callid)
55 55
         {
56
-            return dal.Update(id);
56
+            return dal.Update(id, callid);
57 57
         }
58 58
 
59 59
         /// <summary>
@@ -71,10 +71,18 @@ namespace CallCenterApi.BLL
71 71
             return dal.Update2(userid, phone);
72 72
         }
73 73
 
74
-            /// <summary>
75
-            /// 删除一条数据
76
-            /// </summary>
77
-            public bool Delete(int F_ID)
74
+
75
+        /// <summary>
76
+        /// 挂断电话 可继续拨打电话
77
+        /// </summary>
78
+        public bool Update3(int id)
79
+        {
80
+            return dal.Update3(id);
81
+        }
82
+        /// <summary>
83
+        /// 删除一条数据
84
+        /// </summary>
85
+        public bool Delete(int F_ID)
78 86
         {
79 87
 
80 88
             return dal.Delete(F_ID);

+ 20 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Rec_RegRecordsCallOut.cs

@@ -299,10 +299,10 @@ parameters[22].Value = model.F_UnitOffice;
299 299
         /// <summary>
300 300
         /// 开始电话
301 301
         /// </summary>
302
-        public bool Update(string id)
302
+        public bool Update(string id,string F_CallId)
303 303
         {    
304 304
 
305
-            int rows = DbHelperSQL.ExecuteSql("update T_Rec_RegRecordsCallOut set F_RecCode='1' where F_RecCode='0' AND F_Id=" + id);
305
+            int rows = DbHelperSQL.ExecuteSql(string.Format("update T_Rec_RegRecordsCallOut set F_RecCode='1',F_CallId='{0}' where F_RecCode='0' AND F_Id={1}", F_CallId, id));
306 306
 
307 307
             if (rows > 0)
308 308
             {
@@ -332,6 +332,24 @@ parameters[22].Value = model.F_UnitOffice;
332 332
         }
333 333
 
334 334
         /// <summary>
335
+        /// 挂断电话 可继续拨打电话
336
+        /// </summary>
337
+        public bool Update3(int id)
338
+        {
339
+            int rows = DbHelperSQL.ExecuteSql(string.Format("update T_Rec_RegRecordsCallOut set F_RecCode='2' where   F_Id={0} ", id));
340
+
341
+            if (rows > 0)
342
+            {
343
+                return true;
344
+            }
345
+            else
346
+            {
347
+                return false;
348
+            }
349
+        }
350
+
351
+
352
+        /// <summary>
335 353
         /// 删除一条数据
336 354
         /// </summary>
337 355
         public bool Delete(int F_ID)

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Docking/DockingController.cs

@@ -20,7 +20,7 @@ namespace CallCenterApi.Interface.Controllers.Docking
20 20
         /// <returns></returns>
21 21
         public ActionResult SendGetCompanylist(string name,int pageno=1,int pagesize=100)
22 22
         {
23
-            string strURL = "http://gxldzc.zzgx.gov.cn/api/acase-main/company/page?";
23
+            string strURL = "http://10.1.200.47:82/api/acase-main/company/page?";
24 24
             strURL += "&current="+ pageno;
25 25
             strURL += "&size="+ pagesize;
26 26
             if (!string.IsNullOrWhiteSpace(name))
@@ -41,7 +41,7 @@ namespace CallCenterApi.Interface.Controllers.Docking
41 41
         /// <returns></returns>
42 42
         public ActionResult SendAddCompany(string name)
43 43
         {
44
-            string strURL = "http://gxldzc.zzgx.gov.cn/api/acase-main/company/save";
44
+            string strURL = "http://10.1.200.47:82/api/acase-main/company/save";
45 45
             var m = new {
46 46
                 id=0,//"id":"唯一标识",
47 47
                 linkman="",//"linkman":"联系人",

+ 23 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/RegRecords/RegRecordsCallOutController.cs

@@ -20,7 +20,7 @@ namespace CallCenterApi.Interface.Controllers.RegRecords
20 20
             int userid = CurrentUser.UserData.F_UserId;
21 21
             if (userid == 0)
22 22
                 return Error("用户信息获取失败,请重新登录");
23
-            string sql = string.Format(" and F_CreateBy =(select F_Mobile from T_Sys_UserAccount where  F_UserId={0} and F_RecCode<2)", userid);
23
+            string sql = string.Format(" and F_CreateBy =(select F_Mobile from T_Sys_UserAccount where  F_UserId={0} and F_RecCode=0)", userid);
24 24
             DataTable dt = new DataTable();
25 25
             int recordCount = 0;
26 26
 
@@ -139,13 +139,13 @@ namespace CallCenterApi.Interface.Controllers.RegRecords
139 139
 
140 140
         }
141 141
 
142
-        public ActionResult Update(string id)
142
+        public ActionResult Update(string id,string callid="")
143 143
         {
144 144
             if (!Request.IsAuthenticated)
145 145
                 return NoToken("未知错误,请重新登录");
146 146
             if (id != null && id.Length > 0)
147 147
             {
148
-                if (new BLL.T_Rec_RegRecordsCallOut().Update(id))
148
+                if (new BLL.T_Rec_RegRecordsCallOut().Update(id, callid))
149 149
                 {
150 150
                     return Success("成功");
151 151
                 }
@@ -180,6 +180,26 @@ namespace CallCenterApi.Interface.Controllers.RegRecords
180 180
         }
181 181
 
182 182
 
183
+        //挂断电话
184
+        public ActionResult Update3(int id)
185
+        {
186
+            if (!Request.IsAuthenticated)
187
+                return NoToken("未知错误,请重新登录");
188
+            int userid = CurrentUser.UserData.F_UserId;
189
+            if (userid == 0)
190
+                return Error("用户信息获取失败,请重新登录");
191
+
192
+            if (new BLL.T_Rec_RegRecordsCallOut().Update3(id))
193
+            {
194
+                return Success("成功");
195
+            }
196
+            else
197
+                return Success("失败");
198
+
199
+
200
+        }
201
+
202
+
183 203
 
184 204
         public ActionResult Update0(string id)
185 205
         {

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/api/SetController.cs

@@ -51,14 +51,14 @@ namespace CallCenterApi.Interface.Controllers.api
51 51
 
52 52
 
53 53
 
54
-            #region  验证1分钟内是否重复添加
54
+            #region  验证0.1分钟内是否重复添加
55 55
 
56
-            int n=dBLL.GetRecordCount(string.Format(" F_userPhone ='{0}' and datediff(ss,getdate(),F_CreateOn) <= 60", dModel.F_userPhone));
56
+            //int n = dBLL.GetRecordCount(string.Format(" F_userPhone ='{0}' and datediff(ss,F_CreateOn,getdate()) <= 5", dModel.F_userPhone));
57 57
 
58
-            if (n > 0)
59
-            {
60
-                return Error("频率太高,请稍后再试");
61
-            }
58
+            //if (n > 0)
59
+            //{
60
+            //    return Error("频率太高,请稍后再试");
61
+            //}
62 62
             #endregion
63 63
 
64 64
             //dModel.F_Tel = tel;

+ 1 - 1
ivr/IVR_GXQ.xml

@@ -48,7 +48,7 @@
48 48
 		</cell>
49 49
 		<cell Name="CELL_COMPARE" Pos="10" Data1Type="2" Data2Type="1" Data3Type="1" Data1="HolidayVerify" Data2="0" Data3="" VarType="1" CompareType="2" TruePos="603" FalsePos="11" Note="判断节假日" />
50 50
 		<cell Name="CELL_AUDIODTMF" Pos="11" PlayType="2" ContentType="1" Content="D:\wav\GXQ\下班欢迎词.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50" 
51
-		TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="" SuccessPos="24" FailPos="24" HangupPos="24" Note="放节假日音" />
51
+		TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="" SuccessPos="11" FailPos="11" HangupPos="24" Note="放节假日音" />
52 52
 		<!--节假日-->
53 53
 		
54 54
 		

BIN
ivr/wav/下班欢迎词.wav