/// <summary>
        /// 获取接单师傅信息列表
        /// </summary>
        /// <param name="pRequest"></param>
        /// <returns></returns>
        public string GetReceiveMaster(string pRequest)
        {
            var rd = new APIResponse <GetReceiveMasterRD>();

            try
            {
                var req = pRequest.DeserializeJSONTo <APIRequest <GetReceiveMasterRP> >();
                if (req.Parameters == null)
                {
                    throw new ArgumentException();
                }

                req.Parameters.Validate();

                // 根据师傅id查询师傅详情
                var personIdList = ServiceOrderManager.Instance.GetAppliedServicePerson(req.Parameters.ServiceOrderNO);
                var resultList   = personIdList.Select(id => GreeCommon.GetServicePerson(req.CustomerID, req.UserID, id)).ToList();

                var rdData = new GetReceiveMasterRD
                {
                    ServicePersonList = resultList
                };

                rd.Data       = rdData;
                rd.ResultCode = 0;
            }
            catch (Exception ex)
            {
                rd.Message    = ex.Message;
                rd.ResultCode = 101;
            }

            return(rd.ToJSON());
        }
        /// <summary>
        /// 获取师傅个人信息
        /// </summary>
        /// <param name="pRequest"></param>
        /// <returns></returns>
        public string GetServicePerson(string pRequest)
        {
            var rd = new APIResponse <GetServicePersonRD>();

            try
            {
                var req = pRequest.DeserializeJSONTo <APIRequest <GetServicePersonRP> >();
                if (req.Parameters == null)
                {
                    throw new ArgumentException();
                }

                req.Parameters.Validate();

                // 根据师傅id查询师傅详情
                var model = GreeCommon.GetServicePerson(req.CustomerID, req.UserID, req.Parameters.ServicePersonId);

                var rdData = new GetServicePersonRD {
                    ServicePerson = model
                };
                rd.Data       = rdData;
                rd.ResultCode = 0;
            }
            catch (Exception ex)
            {
                rd.Message    = ex.Message;
                rd.ResultCode = 101;
            }

            return(rd.ToJSON());
        }