コード例 #1
0
 /// <summary>
 /// 根据商品名称获取商品列表
 /// </summary>
 /// <param name="input">参数dto</param>
 /// <returns>商品列表</returns>
 public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO <Jinher.AMP.BTP.Deploy.CustomDTO.ListResult <Jinher.AMP.BTP.Deploy.CustomDTO.CommodityListOutPut> > GetCommodities(Jinher.AMP.BTP.Deploy.CustomDTO.CommoditySearchInput input)
 {
     base.Do();
     return(this.Command.GetCommodities(input));
 }
コード例 #2
0
        public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO <Jinher.AMP.BTP.Deploy.CustomDTO.ListResult <Jinher.AMP.BTP.Deploy.CustomDTO.CommodityListOutPut> > GetCommodities(Jinher.AMP.BTP.Deploy.CustomDTO.CommoditySearchInput input)
        {
            //定义返回值
            Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO <Jinher.AMP.BTP.Deploy.CustomDTO.ListResult <Jinher.AMP.BTP.Deploy.CustomDTO.CommodityListOutPut> > result;

            try
            {
                //调用代理方法
                result = base.Channel.GetCommodities(input);
            }
            catch
            {
                //抛异常
                throw;
            }
            finally
            {
                //关链接
                ChannelClose();
            }            //返回结果
            return(result);
        }