コード例 #1
0
        public string GetMZFeeDetail(request <getMZFeeDetail> getMZFeeDetail)
        {
            if (getMZFeeDetail == null)
            {
                return(RsXmlHelper.ResXml(-1, "XML格式错误"));
            }

            var MZFeeList = orderInfoBLL.GetMZFeeDetails(getMZFeeDetail.model.mzFeeId, getMZFeeDetail.model.recipeNo);

            if (MZFeeList.Count > 0)
            {
                return(XMLHelper.XmlSerialize(new response <Entity.SResponse.getMZFeeDetail>()
                {
                    model = new Entity.SResponse.getMZFeeDetail()
                    {
                        resultCode = 0,
                        resultMessage = "",
                        item = MZFeeList
                    }
                }));
            }
            else
            {
                return(XMLHelper.XmlSerialize(new Entity.SResponse.getMZFeeDetail()
                {
                    resultCode = 1,
                    resultMessage = "暂无数据"
                }));
            }
        }