Himall商城BillingApplication

目录

1 Himall商城BillingApplication

1.1 分页获取店铺的收支明细

1.2 获取店铺的收支明细

1.3 统计待结算订单

1.4 统计待结算订单

1.5 分页获取平台的收支明细

  1. Himall商城BillingApplication
    1. 分页获取店铺的收支明细

  public static QueryPageModel GetShopAccountItem(ShopAccountItemQuery query)

        {

            var model = _iBillingService.GetShopAccountItem(query);

            return new QueryPageModel()

            {

                Total = model.Total,

                Models = model.Models.Map>()

            };

        }

    1. 获取店铺的收支明细

    public static List GetShopAccountItemNoPage(ShopAccountItemQuery query)

        {

            var models = _iBillingService.GetShopAccountItemNoPage(query);

            return models.Map>();

        }

    1. 统计待结算订单

 public static QueryPageModel StatisticsPendingSettlementOrders(StatisticsPendingSettlementQuery query)

        {

            return _iBillingService.StatisticsPendingSettlementOrders(query);

        }

    1. 统计待结算订单

 public static List StatisticsPendingSettlementOrdersNoPage(StatisticsPendingSettlementQuery query)

        {

            return _iBillingService.StatisticsPendingSettlementOrdersNoPage(query);

        }

    1. 分页获取平台的收支明细

   public static QueryPageModel GetPlatAccountItem(PlatAccountItemQuery query)

        {

            var model = _iBillingService.GetPlatAccountItem(query);

            QueryPageModel item = new QueryPageModel();

            item.Total = model.Total;

            List items = new List();

            foreach (var m in model.Models)

            {

                PlatAccountItem PlatAccountItem = new PlatAccountItem();

                PlatAccountItem.AccountNo = m.AccountNo;

                PlatAccountItem.Balance = m.Balance.ToString();

                PlatAccountItem.CreateTime = m.CreateTime.ToString("yyyy-MM-dd HH:mm:ss");

                PlatAccountItem.DetailId = m.DetailId;

                PlatAccountItem.PlatAccountType = m.TradeType;

                if (m.IsIncome)

                {

                    PlatAccountItem.Income = m.Amount.ToString();

                }

                else

                {

                    PlatAccountItem.Expenditure = m.Amount.ToString();

                }

                PlatAccountItem.Id = m.Id;

                items.Add(PlatAccountItem);

            }

            item.Models = items;

            return item;

        }

你可能感兴趣的:(数学建模)