|
|
@@ -244,10 +244,14 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
244
|
244
|
model = bll.GetModel(cid);
|
|
245
|
245
|
if (model != null)
|
|
246
|
246
|
{
|
|
247
|
|
- model.F_CustomerName = name;
|
|
248
|
|
- model.F_Province = province;
|
|
249
|
|
- model.F_CustomerIndustry = customerindustry;
|
|
250
|
|
- model.F_Telephone = mobile;
|
|
|
247
|
+ if (!string.IsNullOrEmpty(name))
|
|
|
248
|
+ model.F_CustomerName = name;
|
|
|
249
|
+ if (!string.IsNullOrEmpty(province))
|
|
|
250
|
+ model.F_Province = province;
|
|
|
251
|
+ if (!string.IsNullOrEmpty(customerindustry))
|
|
|
252
|
+ model.F_CustomerIndustry = customerindustry;
|
|
|
253
|
+ if (!string.IsNullOrEmpty(mobile))
|
|
|
254
|
+ model.F_Telephone = mobile;
|
|
251
|
255
|
if (bll.Update(model))
|
|
252
|
256
|
{
|
|
253
|
257
|
return Success("修改成功!", model.F_CustomerId);
|