Pārlūkot izejas kodu

bug3707,3706,3702 语音留言管理报错

lihai 6 gadi atpakaļ
vecāks
revīzija
6ee3664400

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SMSController.cs

@@ -69,7 +69,7 @@ namespace CallCenterApi.Interface.Controllers
69 69
                 if (!string.IsNullOrEmpty(endtime))
70 70
                     sql += " and datediff(day,RecvTime,'" + endtime + "')>=0   ";
71 71
                 if (!string.IsNullOrEmpty(phone))
72
-                    sql += " and CallerNum= "+ phone;
72
+                    sql += " and CallerNum= '" + phone + "'";
73 73
                 
74 74
                 int recordCount = 0;
75 75
                 dt = BLL.PagerBLL.GetListPager(

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SeatGroupController.cs

@@ -32,7 +32,7 @@ namespace CallCenterApi.Interface.Controllers
32 32
             string sql = "";
33 33
             if (strcontent!=null&&strcontent != "")
34 34
             {
35
-                sql = " and( F_ZXZCode like '" + strcontent + "' or F_ZXZName  like '" + strcontent + "'  or F_WHBDKey like '" + strcontent + "%'  or F_WHWDKey  like '" + strcontent + "%'  or F_ZXAtt like '" + strcontent + "'  or F_Des like '" + strcontent + "')";
35
+                sql = " and( F_ZXZCode like '" + strcontent + "' or F_ZXZName  like '%" + strcontent + "%'  or F_WHBDKey like '" + strcontent + "%'  or F_WHWDKey  like '" + strcontent + "%'  or F_ZXAtt like '" + strcontent + "'  or F_Des like '" + strcontent + "')";
36 36
             }
37 37
                 if (strpageindex.Trim() != "")
38 38
                 {

+ 3 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallleaveController.cs

@@ -81,8 +81,9 @@ namespace CallCenterApi.Interface.Controllers.tel
81 81
                         {
82 82
                             dr["F_RecFileUrl"] = config.F_ParamValue + path;
83 83
                         }
84
-                       
85
-                      var prono =dr["F_Phone"].ToString().Substring(0, 7);
84
+
85
+                    var phone = dr["F_Phone"].ToString();
86
+                    var prono = phone.Trim().Length >= 7 ? dr["F_Phone"].ToString().Substring(0, 7) : dr["F_Phone"].ToString();
86 87
                     var MobileData = new BLL.T_Sys_MobileData().GetModelList("F_MobileNum='"+ prono+"'").FirstOrDefault ();
87 88
                     if (MobileData != null)
88 89
                         dr["F_Remark"] = MobileData.F_CityDes;