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

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

51
         /// <summary>
51
         /// <summary>
52
         /// 更新数据状态
52
         /// 更新数据状态
53
         /// </summary>
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
         /// <summary>
59
         /// <summary>
71
             return dal.Update2(userid, phone);
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
             return dal.Delete(F_ID);
88
             return dal.Delete(F_ID);

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

299
         /// <summary>
299
         /// <summary>
300
         /// 开始电话
300
         /// 开始电话
301
         /// </summary>
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
             if (rows > 0)
307
             if (rows > 0)
308
             {
308
             {
332
         }
332
         }
333
 
333
 
334
         /// <summary>
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
         /// </summary>
354
         /// </summary>
337
         public bool Delete(int F_ID)
355
         public bool Delete(int F_ID)

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

20
         /// <returns></returns>
20
         /// <returns></returns>
21
         public ActionResult SendGetCompanylist(string name,int pageno=1,int pagesize=100)
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
             strURL += "&current="+ pageno;
24
             strURL += "&current="+ pageno;
25
             strURL += "&size="+ pagesize;
25
             strURL += "&size="+ pagesize;
26
             if (!string.IsNullOrWhiteSpace(name))
26
             if (!string.IsNullOrWhiteSpace(name))
41
         /// <returns></returns>
41
         /// <returns></returns>
42
         public ActionResult SendAddCompany(string name)
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
             var m = new {
45
             var m = new {
46
                 id=0,//"id":"唯一标识",
46
                 id=0,//"id":"唯一标识",
47
                 linkman="",//"linkman":"联系人",
47
                 linkman="",//"linkman":"联系人",

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

20
             int userid = CurrentUser.UserData.F_UserId;
20
             int userid = CurrentUser.UserData.F_UserId;
21
             if (userid == 0)
21
             if (userid == 0)
22
                 return Error("用户信息获取失败,请重新登录");
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
             DataTable dt = new DataTable();
24
             DataTable dt = new DataTable();
25
             int recordCount = 0;
25
             int recordCount = 0;
26
 
26
 
139
 
139
 
140
         }
140
         }
141
 
141
 
142
-        public ActionResult Update(string id)
142
+        public ActionResult Update(string id,string callid="")
143
         {
143
         {
144
             if (!Request.IsAuthenticated)
144
             if (!Request.IsAuthenticated)
145
                 return NoToken("未知错误,请重新登录");
145
                 return NoToken("未知错误,请重新登录");
146
             if (id != null && id.Length > 0)
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
                     return Success("成功");
150
                     return Success("成功");
151
                 }
151
                 }
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
         public ActionResult Update0(string id)
204
         public ActionResult Update0(string id)
185
         {
205
         {

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

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
             #endregion
62
             #endregion
63
 
63
 
64
             //dModel.F_Tel = tel;
64
             //dModel.F_Tel = tel;

+ 1 - 1
ivr/IVR_GXQ.xml

48
 		</cell>
48
 		</cell>
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="判断节假日" />
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
 		<cell Name="CELL_AUDIODTMF" Pos="11" PlayType="2" ContentType="1" Content="D:\wav\GXQ\下班欢迎词.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="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