|
|
@@ -18,7 +18,7 @@ using System.Reflection;
|
|
18
|
18
|
|
|
19
|
19
|
namespace CallCenterApi.Interface.Controllers.customer
|
|
20
|
20
|
{
|
|
21
|
|
- [Authority]
|
|
|
21
|
+
|
|
22
|
22
|
public class CustomerController : BaseController
|
|
23
|
23
|
{
|
|
24
|
24
|
/// <summary>
|
|
|
@@ -159,8 +159,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
159
|
159
|
/// <returns></returns>
|
|
160
|
160
|
public ActionResult GetCustomerByTel(string tel)
|
|
161
|
161
|
{
|
|
162
|
|
- if (!Request.IsAuthenticated)
|
|
163
|
|
- return NoToken("未知错误,请重新登录");
|
|
|
162
|
+
|
|
164
|
163
|
|
|
165
|
164
|
if (!string.IsNullOrEmpty(tel))
|
|
166
|
165
|
{
|
|
|
@@ -182,10 +181,8 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
182
|
181
|
public ActionResult SaveCustomer(string name, string tel, string province, string city,
|
|
183
|
182
|
string country, string address, string sex, string remarks,int specialTag, int id = 0)
|
|
184
|
183
|
{
|
|
185
|
|
- if (!Request.IsAuthenticated)
|
|
186
|
|
- return NoToken("未知错误,请重新登录");
|
|
187
|
|
- int userId = CurrentUser.UserData.F_UserId;
|
|
188
|
|
- Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
|
|
|
184
|
+
|
|
|
185
|
+
|
|
189
|
186
|
if (getunphone(tel, id))
|
|
190
|
187
|
return Error("已存在此号码的档案");
|
|
191
|
188
|
Model.T_Cus_Customer model = new Model.T_Cus_Customer();
|
|
|
@@ -208,7 +205,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
208
|
205
|
var res = false;
|
|
209
|
206
|
if (id == 0)
|
|
210
|
207
|
{
|
|
211
|
|
- model.F_CreateUser = userModel.F_UserCode;
|
|
|
208
|
+ model.F_CreateUser = "8000";
|
|
212
|
209
|
model.F_CreateTime = DateTime.Now;
|
|
213
|
210
|
model.F_IsDelete = 0;
|
|
214
|
211
|
int n = bll.Add(model);
|