ソースを参照

话务工作报表和来电弹屏

liyuanyuan 3 年 前
コミット
1ffd625b40
共有2 個のファイルを変更した72 個の追加0 個の削除を含む
  1. 52 0
      RMYY_CallCenter_Api/Controllers/Quality/TalkTimeController.cs
  2. 20 0
      RMYY_CallCenter_Api/Controllers/System/CustomerController.cs

File diff suppressed because it is too large
+ 52 - 0
RMYY_CallCenter_Api/Controllers/Quality/TalkTimeController.cs


+ 20 - 0
RMYY_CallCenter_Api/Controllers/System/CustomerController.cs

@@ -248,5 +248,25 @@ namespace RMYY_CallCenter_Api.Controllers.System
248 248
             }
249 249
             return Success("导入成功");
250 250
         }
251
+
252
+        public ActionResult GetUserInfoByPhone(string phone)
253
+        {
254
+            string sql = "select * from T_Cus_Customer where  F_Telephone='"+phone+ "' or F_Mobile='"+phone+"'";
255
+            DataTable dtcustomer = DB.DbHelperSQL.Query(sql).Tables[0];
256
+
257
+            string sqluser = "  select * ,dbo.GetDepName(F_DeptId) deptname from T_Sys_UserAccount  where  F_Telephone='" + phone + "' or F_Mobile='" + phone + "'";
258
+            DataTable dtuser = DB.DbHelperSQL.Query(sqluser).Tables[0];
259
+            var obj = new
260
+            {
261
+                state = "success",
262
+                message = "成功",
263
+                dtcustomer = dtcustomer,
264
+                dtuser = dtuser
265
+            };
266
+
267
+            return Success("根据电话号码获取信息成功", obj);
268
+
269
+        }
270
+
251 271
     }
252 272
 }