|
|
@@ -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
|
}
|