/// <summary>
        /// 根据订单ID获取拆单订单的相关订单
        /// </summary>
        /// <param name="orderId"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public static List <int> GetRelatedSplitOrderIDs(int orderId, SplitQueryType type)
        {
            List <int> order = new List <int>();

            try
            {
                using (var orderClient = new OrderQueryClient())
                {
                    var fetchResult = orderClient.GetRelatedSplitOrderIDs(orderId, type);
                    if (!fetchResult.Success)
                    {
                        Logger.Warn($"GetRelatedSplitOrderIDs,根据订单ID获取拆单订单的相关订单接口失败,message:{fetchResult.ErrorMessage}");
                    }
                    else
                    {
                        order = fetchResult.Result == null ? new List <int>() : fetchResult.Result.ToList();
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.Error($"GetRelatedSplitOrderIDs 接口异常,异常信息:{ex.Message},堆栈信息:{ex.StackTrace}");
            }
            return(order);
        }
        /// <summary>
        /// 根据订单ID获取拆单订单的相关订单
        /// </summary>
        /// <param name="orderId"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public static async Task <IEnumerable <int> > GetRelatedSplitOrderIDsAsync(int orderId, SplitQueryType type)
        {
            IEnumerable <int> order = null;

            try
            {
                using (var orderClient = new OrderQueryClient())
                {
                    var fetchResult = await orderClient.GetRelatedSplitOrderIDsAsync(orderId, type);

                    fetchResult.ThrowIfException(true);
                    order = fetchResult.Success ? fetchResult.Result : null;
                }
            }
            catch (Exception ex)
            {
                Logger.Error("GetRelatedSplitOrderIDsAsync 接口异常", ex);
            }
            return(order);
        }