public OrderMoney SelectGroupTotalMoney(string transactionId = "", string userId = "", string productId = "", DateTime?beginTime = null, DateTime?endTime = null, int?status = null, decimal?minMoney = null, decimal?maxMoney = null, int groupType = 1) { OrderMoney orderMoney; try { var groupOrder = GetGroupOrder(transactionId, userId, productId, status, minMoney, maxMoney, beginTime, endTime, groupType); var orderData = groupOrder.Data; decimal totalMoney = orderData.TotalMoney; orderMoney = new OrderMoney { Status = 200, Message = "success", Data = totalMoney }; log.Info($"获取【{userId}】机构订单总金额接口成功!"); } catch (Exception ex) { orderMoney = new OrderMoney { Status = 500, Message = ex.Message, Data = 0 }; log.Error($"获取【{userId}】机构订单总金额接口出错:" + ex); } return(orderMoney); }
public OrderMoney SelectPersonTotalMoney(string transactionId = "", string userId = "", DateTime?beginTime = null, DateTime?endTime = null, int?status = null, string payWay = "") { OrderMoney orderMoney = new OrderMoney(); try { var personOrder = GetPersonOrder(transactionId, userId, beginTime, endTime, status, payWay); var orderList = personOrder.Data; decimal totalMoney = orderList.TotalMoney; orderMoney = new OrderMoney { Status = 200, Message = "success", Data = totalMoney }; log.Info($"获取【{userId}】个人订单总金额接口成功!"); } catch (Exception ex) { orderMoney = new OrderMoney { Status = 500, Message = ex.Message, Data = 0 }; log.Error($"获取【{userId}】个人订单总金额接口出错:" + ex); } return(orderMoney); }
/// <summary> /// 获取订单的金额 /// </summary> /// <param name="orderId"></param> public OrderMoney GetOrderMoney(string orderId) { if (string.IsNullOrEmpty(orderId)) { throw new System.Exception("bll error:查询id为null。string.IsNullOrEmpty(id)==true."); } OrderMoney orderMoney = dal.GetOrderMoney(orderId); if (orderMoney == null) { orderMoney = dal.GetFinOtherInFeeMoney(orderId); } return(orderMoney); }