Himall商城BillingApplication

目录

1 Himall商城BillingApplication

1.1 分页获取已结算订单列表

1.2 获取已结算订单

  1. Himall商城BillingApplication
    1. 分页获取已结算订单列表

   public static QueryPageModel GetSettlementOrders(SettlementOrderQuery query)

        {

            var orders = new QueryPageModel();

            var model = _iBillingService.GetSettlementOrders(query);

            orders.Total = model.Total;

            var SettledOrders = new List();

            foreach (var m in model.Models)

            {

                var o = new SettledOrders();

                o.DistributorCommission = m.BrokerageAmount - m.ReturnBrokerageAmount;

                o.OrderAmount = m.OrderAmount;

                o.OrderFinshTime = m.OrderFinshDate.ToString("yyyy-MM-dd HH:mm:ss");

                o.OrderId = m.OrderId;

                o.PlatCommission = m.CommissionAmount - m.RefundCommisAmount;

                o.RefundAmount = m.RefundTotalAmount;

                o.SettledTime = m.Date.ToString("yyyy-MM-dd HH:mm:ss");

                o.SettlementAmount = m.SettlementAmount;

                o.ShopName = m.ShopName;

                o.ShopId = m.ShopId;

                o.PaymentTypeName = m.PaymentTypeName;

                o.FreightAmount = m.FreightAmount;

                SettledOrders.Add(o);

            }

            orders.Models = SettledOrders;

            return orders;

        }

    1. 获取已结算订单

     public static List GetSettlementOrdersNoPage(SettlementOrderQuery query)

        {

            var models = _iBillingService.GetSettlementOrdersNoPage(query);

            var settledOrders = new List();

            foreach (var m in models)

            {

                var o = new SettledOrders();

                o.DistributorCommission = m.BrokerageAmount - m.ReturnBrokerageAmount;

                o.OrderAmount = m.OrderAmount;

                o.OrderFinshTime = m.OrderFinshDate.ToString("yyyy-MM-dd HH:mm:ss");

                o.OrderId = m.OrderId;

                o.PlatCommission = m.CommissionAmount - m.RefundCommisAmount;

                o.RefundAmount = m.RefundTotalAmount;

                o.SettledTime = m.Date.ToString("yyyy-MM-dd HH:mm:ss");

                o.SettlementAmount = m.SettlementAmount;

                o.ShopName = m.ShopName;

                o.ShopId = m.ShopId;

                o.PaymentTypeName = m.PaymentTypeName;

                settledOrders.Add(o);

            }

            return settledOrders;

        }

你可能感兴趣的:(java,数学建模,算法)