//(排除未审核)更新客户名称到lis客户表 yungchu public void UpdateCustomerInfoToLis(string customerCode) { Customer getCustomers = _customerService.GetCustomer(customerCode); int getStatus = getCustomers.Status == 2 ? 1 : 2; var param = new CustomerInfoParam() { CustomerId = getCustomers.CustomerID, CustomerTypeId = getCustomers.CustomerTypeID, Status = getStatus, CustomerCode = getCustomers.CustomerCode, Name = getCustomers.Name, EnName = getCustomers.EnName, Address = getCustomers.Address, Phone = getCustomers.Tele, QQ = getCustomers.QQ, MSN = getCustomers.MSN, Skype = getCustomers.Skype, Country = getCustomers.Country, Province = getCustomers.Province, Fax = getCustomers.Fax, PostCode = getCustomers.PostCode, LastUpdatedBy = _workContext.User.UserUame }; _freightService.UpdateCustomerInfoToLis(param); }
/// <summary> /// 更新的用户同步到lis客户表 /// </summary> /// <returns></returns> public bool UpdateCustomerInfoToLis(CustomerInfoParam customerInfoParam) { var url = sysConfig.LISAPIPath + "API/LIS/PostUpdateCustomerInfoFromLms"; try { var model = HttpHelper.DoRequest <bool>(url, EnumHttpMethod.POST, EnumContentType.Json, customerInfoParam); Log.Info(model.RawValue); return(model.Value); } catch (Exception ex) { Log.Error("错误地址:" + url); Log.Exception(ex); } return(false); }