Exemplo n.º 1
0
        public Jinher.AMP.BTP.Deploy.CustomDTO.OrderResultDTO SubmitOrder(Jinher.AMP.BTP.Deploy.CustomDTO.OrderQueueDTO orderSDTO)
        {
            base.Do(false);
            Stopwatch timer = new Stopwatch();

            timer.Start();
            var result = this.SubmitOrderExt(orderSDTO);

            timer.Stop();
            LogHelper.Debug(string.Format("CommodityOrderSV.SubmitOrder:耗时:{0}。入参:orderSDTO:{1},\r\n出参:{2}", timer.ElapsedMilliseconds, JsonHelper.JsonSerializer(orderSDTO), JsonHelper.JsonSerializer(result)));
            return(result);
        }
Exemplo n.º 2
0
 public Jinher.AMP.BTP.Deploy.CustomDTO.OrderResultDTO SubmitOrder(Jinher.AMP.BTP.Deploy.CustomDTO.OrderQueueDTO orderSDTO)
 {
     try
     {
         //调用代理方法
         return(base.Channel.SubmitOrder(orderSDTO));
     }
     catch
     {
         //抛异常
         throw;
     }
     finally
     {
         //关链接
         ChannelClose();
     }            //返回结果
 }