|
|
@@ -220,15 +220,18 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
220
|
220
|
}
|
|
221
|
221
|
else
|
|
222
|
222
|
{
|
|
223
|
|
- BLL.T_Sys_TelTitleData numbBll = new BLL.T_Sys_TelTitleData();
|
|
224
|
|
- List<Model.T_Sys_TelTitleData> mobileModel = numbBll.GetModelList(" F_KeyPhoneNum='" + tel.Substring(0, 4) + "'");
|
|
225
|
|
- if (mobileModel == null || mobileModel.Count <= 0)
|
|
226
|
|
- {
|
|
227
|
|
- mobileModel = numbBll.GetModelList(" F_KeyPhoneNum='" + tel.Substring(0, 3) + "'");
|
|
228
|
|
- }
|
|
229
|
|
- if (mobileModel.Count > 0)
|
|
|
223
|
+ if (tel.Trim().Length > 3)
|
|
230
|
224
|
{
|
|
231
|
|
- location = mobileModel[0].F_TitleName;
|
|
|
225
|
+ BLL.T_Sys_TelTitleData numbBll = new BLL.T_Sys_TelTitleData();
|
|
|
226
|
+ List<Model.T_Sys_TelTitleData> mobileModel = numbBll.GetModelList(" F_KeyPhoneNum='" + tel.Substring(0, 4) + "'");
|
|
|
227
|
+ if (mobileModel == null || mobileModel.Count <= 0)
|
|
|
228
|
+ {
|
|
|
229
|
+ mobileModel = numbBll.GetModelList(" F_KeyPhoneNum='" + tel.Substring(0, 3) + "'");
|
|
|
230
|
+ }
|
|
|
231
|
+ if (mobileModel.Count > 0)
|
|
|
232
|
+ {
|
|
|
233
|
+ location = mobileModel[0].F_TitleName;
|
|
|
234
|
+ }
|
|
232
|
235
|
}
|
|
233
|
236
|
}
|
|
234
|
237
|
}
|