|
|
@@ -504,7 +504,7 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
504
|
504
|
//电话
|
|
505
|
505
|
string tel = RequestString.GetFormString("tel");
|
|
506
|
506
|
//来电所在省份
|
|
507
|
|
- string prov = RequestString.GetFormString("province");
|
|
|
507
|
+ //string prov = RequestString.GetFormString("province");
|
|
508
|
508
|
//来电单位
|
|
509
|
509
|
string lddep = RequestString.GetFormString("lddep");
|
|
510
|
510
|
//反馈单位
|
|
|
@@ -649,24 +649,27 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
649
|
649
|
new BLL.T_Call_CallRecords().Update(rec);
|
|
650
|
650
|
}
|
|
651
|
651
|
}
|
|
|
652
|
+ #region 将不存在的客户保存到客户基础信息中。已在来电弹屏左侧处理
|
|
652
|
653
|
//如果客户不存在,需要同时添加到客户基础信息表中
|
|
653
|
|
- Model.T_Cus_CustomerBase userModel = new BLL.T_Cus_CustomerBase().GetModel(tel);
|
|
654
|
|
- if (userModel == null)
|
|
655
|
|
- {
|
|
656
|
|
- int cusid = new BLL.T_Cus_CustomerBase().Add(new Model.T_Cus_CustomerBase()
|
|
657
|
|
- {
|
|
658
|
|
- F_CustomerName = callCustomer,
|
|
659
|
|
- F_Mobile = tel,
|
|
660
|
|
- F_CreateBy = userId,
|
|
661
|
|
- F_CreatedOn = DateTime.Now,
|
|
662
|
|
- F_DeleteFlag = 0,
|
|
663
|
|
- F_Province = prov,
|
|
664
|
|
- F_CustomerIndustry = lddep,
|
|
665
|
|
- F_RelationShipClass = fkdep
|
|
666
|
|
- });
|
|
667
|
|
- if (cusid > 0)
|
|
668
|
|
- res = Success("新增成功!");
|
|
669
|
|
- }
|
|
|
654
|
+ //Model.T_Cus_CustomerBase userModel = new BLL.T_Cus_CustomerBase().GetModel(tel);
|
|
|
655
|
+ //if (userModel == null)
|
|
|
656
|
+ //{
|
|
|
657
|
+ // int cusid = new BLL.T_Cus_CustomerBase().Add(new Model.T_Cus_CustomerBase()
|
|
|
658
|
+ // {
|
|
|
659
|
+ // F_CustomerName = callCustomer,
|
|
|
660
|
+ // F_Mobile = tel,
|
|
|
661
|
+ // F_CreateBy = userId,
|
|
|
662
|
+ // F_CreatedOn = DateTime.Now,
|
|
|
663
|
+ // F_DeleteFlag = 0,
|
|
|
664
|
+ // F_Province = prov,
|
|
|
665
|
+ // F_CustomerIndustry = lddep,
|
|
|
666
|
+ // F_RelationShipClass = fkdep
|
|
|
667
|
+ // });
|
|
|
668
|
+ // if (cusid > 0)
|
|
|
669
|
+ // res = Success("新增成功!");
|
|
|
670
|
+ //}
|
|
|
671
|
+ #endregion
|
|
|
672
|
+ res = Success("新增成功!");
|
|
670
|
673
|
}
|
|
671
|
674
|
else
|
|
672
|
675
|
{
|