|
|
@@ -47,7 +47,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
47
|
47
|
public ActionResult GetList(string code, string cmpname, string legname, string legtel,string province, string city,
|
|
48
|
48
|
string country, string township, int areaid = 0, int branchid = 0,int pageindex = 1, int pagesize = 10)
|
|
49
|
49
|
{
|
|
50
|
|
- string sql = $" and F_DeleteFlag=0";
|
|
|
50
|
+ string sql = $" and F_IsDelete=0";
|
|
51
|
51
|
DataTable dt = new DataTable();
|
|
52
|
52
|
#region 筛选条件
|
|
53
|
53
|
if (areaid > 0)//大区
|
|
|
@@ -111,7 +111,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
111
|
111
|
var list = new List<Model.T_Cus_CustomerBaseNew>();
|
|
112
|
112
|
if (!string.IsNullOrWhiteSpace(sql))
|
|
113
|
113
|
{
|
|
114
|
|
- sql += " and F_DeleteFlag=0";
|
|
|
114
|
+ sql += " and F_IsDelete=0";
|
|
115
|
115
|
list = cusbll.GetModelList(sql);
|
|
116
|
116
|
}
|
|
117
|
117
|
if (list.Count > 0)
|
|
|
@@ -152,7 +152,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
152
|
152
|
if (!string.IsNullOrWhiteSpace(tel))
|
|
153
|
153
|
{
|
|
154
|
154
|
var sql = $" and (F_SalesPhone like '%" + tel.Trim() + "%' or F_LegalPhone like '%" + tel.Trim() + "%')";
|
|
155
|
|
- var userModel = new BLL.T_Cus_CustomerBaseNew().GetModelList(" F_DeleteFlag = 0 " + sql);
|
|
|
155
|
+ var userModel = new BLL.T_Cus_CustomerBaseNew().GetModelList(" F_IsDelete = 0 " + sql);
|
|
156
|
156
|
if (userModel.Count() > 0)
|
|
157
|
157
|
{
|
|
158
|
158
|
var model = userModel.Last();
|
|
|
@@ -282,7 +282,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
282
|
282
|
/// </summary>
|
|
283
|
283
|
private bool getunique(int id, string code)
|
|
284
|
284
|
{
|
|
285
|
|
- var sql = " F_DeleteFlag=0 ";
|
|
|
285
|
+ var sql = " F_IsDelete=0 ";
|
|
286
|
286
|
sql += "and (F_CustomerCode='" + code + "')";
|
|
287
|
287
|
if (id > 0)
|
|
288
|
288
|
sql += " and F_CustomerId<>"+id;
|
|
|
@@ -502,7 +502,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
502
|
502
|
{
|
|
503
|
503
|
var res = false;
|
|
504
|
504
|
//11位数字
|
|
505
|
|
- if (code.Length == 11 && Regex.IsMatch(code, @"^\d{10}$"))
|
|
|
505
|
+ if (code.Length == 10 && Regex.IsMatch(code, @"^\d{10}$"))
|
|
506
|
506
|
res = true;
|
|
507
|
507
|
return res;
|
|
508
|
508
|
}
|