/// <summary> /// 生成订单 /// <para>Service Url: http://devbtp.sv.iuoooo.com/Jinher.AMP.BTP.SV.CommodityOrderSV.svc/SaveCommodityOrder /// </para> /// </summary> /// <param name="orderSDTO">订单实体</param> /// <param name="appId">appId</param> /// <returns></returns> public Jinher.AMP.BTP.Deploy.CustomDTO.OrderResultDTO SaveCommodityOrder(Jinher.AMP.BTP.Deploy.CustomDTO.OrderSDTO orderSDTO) { base.Do(false); Stopwatch timer = new Stopwatch(); timer.Start(); var result = this.SaveCommodityOrderExt(orderSDTO); timer.Stop(); LogHelper.Debug(string.Format("CommodityOrderSV.SaveCommodityOrder:耗时:{0}。入参:orderSDTO:{1},\r\n出参:{2}", timer.ElapsedMilliseconds, JsonHelper.JsonSerializer(orderSDTO), JsonHelper.JsonSerializer(result))); return(result); }
public Jinher.AMP.BTP.Deploy.CustomDTO.OrderResultDTO SaveCommodityOrder(Jinher.AMP.BTP.Deploy.CustomDTO.OrderSDTO orderSDTO) { //定义返回值 Jinher.AMP.BTP.Deploy.CustomDTO.OrderResultDTO result; try { //调用代理方法 result = base.Channel.SaveCommodityOrder(orderSDTO); } catch { //抛异常 throw; } finally { //关链接 ChannelClose(); } //返回结果 return(result); }