|
|
@@ -260,6 +260,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
260
|
260
|
/// <returns></returns>
|
|
261
|
261
|
public ActionResult Add(CustomerBaseNewInput input)
|
|
262
|
262
|
{
|
|
|
263
|
+
|
|
263
|
264
|
string usercode = CurrentUser.UserData.F_UserCode;
|
|
264
|
265
|
#region 添加验证判断
|
|
265
|
266
|
if (string.IsNullOrEmpty(input.F_CustomerCode))
|
|
|
@@ -301,11 +302,14 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
301
|
302
|
}
|
|
302
|
303
|
#endregion
|
|
303
|
304
|
#region 添加财税情况
|
|
304
|
|
- var fincmodel = new CustomerFinanceInput();
|
|
305
|
|
- fincmodel.F_CustomerId = n;
|
|
306
|
|
- fincmodel.F_CustomerCode = model.F_CustomerCode;
|
|
307
|
|
- fincmodel.F_CreateBy = usercode;
|
|
308
|
|
- savefin(input.FinanceInfos);
|
|
|
305
|
+ if (input.FinanceInfos != null)
|
|
|
306
|
+ {
|
|
|
307
|
+ var fincmodel = new CustomerFinanceInput();
|
|
|
308
|
+ fincmodel.F_CustomerId = n;
|
|
|
309
|
+ fincmodel.F_CustomerCode = model.F_CustomerCode;
|
|
|
310
|
+ fincmodel.F_CreateBy = usercode;
|
|
|
311
|
+ savefin(input.FinanceInfos);
|
|
|
312
|
+ }
|
|
309
|
313
|
#endregion
|
|
310
|
314
|
return Success("新增成功!");
|
|
311
|
315
|
}
|
|
|
@@ -392,8 +396,8 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
392
|
396
|
model.F_WxPassword = input.F_WxPassword;
|
|
393
|
397
|
if (input.F_BeDept > 0)
|
|
394
|
398
|
model.F_BeDept = input.F_BeDept;
|
|
395
|
|
- //if (input.F_CusType > 0)
|
|
396
|
|
- // model.F_CusType = input.F_CusType;//客户类型
|
|
|
399
|
+ if (input.F_CusType!=null&&input.F_CusType > 0)
|
|
|
400
|
+ model.F_CusType = input.F_CusType;//客户类型
|
|
397
|
401
|
if (!string.IsNullOrWhiteSpace(input.F_FinancialManager))
|
|
398
|
402
|
model.F_FinancialManager = input.F_FinancialManager;
|
|
399
|
403
|
if (!string.IsNullOrWhiteSpace(input.F_BusinessOwner))
|