Пример #1
0
        /// <summary>
        /// 获取订单配送地址
        /// </summary>
        /// <param name="provinceId"></param>
        /// <param name="cityId"></param>
        /// <param name="areaId"></param>
        /// <returns></returns>

        public string GetOrderAddressById(string provinceId, string cityId, string areaId, int language)
        {
            StringBuilder sb = new StringBuilder();

            try
            {
                var entity = dal.GetOrderAddressById(provinceId, cityId, areaId, language);
                if (entity != null)
                {
                    sb.Append(entity.ProvinceName);
                    sb.Append(entity.CityName.Replace("市辖区", ""));
                    sb.Append(entity.AreaName);
                }
            }
            catch (Exception ex)
            {
                LogHelper.Error(string.Format("订单获取配送地址异常:{0}", ex.Message));
            }
            return(sb.ToString());
        }