Himall商城BillingApplication提现

目录

1 Himall商城BillingApplication提现

1.1 查询店铺提现记录

1.2 店铺结算统计信息

1.3 平台结算统计信息

  1. Himall商城BillingApplication提现
    1.   查询店铺提现记录

          public static List GetShopWithDrawNoPage(WithdrawQuery query)

        {

            var models = _iBillingService.GetShopWithDrawNoPage(query);

            var items = new List();

            foreach (ShopWithDrawInfo mInfo in models)

            {

                var swdi = new ShopWithDrawItem();

                swdi.Id = mInfo.Id;

                swdi.Account = mInfo.Account;

                swdi.AccountName = mInfo.AccountName;

                swdi.AccountNo = long.Parse(mInfo.CashNo);

                swdi.AccountNoText = swdi.AccountNo.ToString();

                swdi.ApplyTime = mInfo.ApplyTime.ToString("yyyy-MM-dd HH:mm:ss");

                swdi.CashAmount = mInfo.CashAmount.ToString("f2");

                swdi.WithStatus = (int)mInfo.Status;

                swdi.CashType = mInfo.CashType.ToDescription();

                swdi.DealTime = mInfo.DealTime == null ? "" : mInfo.DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");

                swdi.PlatRemark = mInfo.PlatRemark;

                swdi.SellerId = mInfo.SellerId;

                swdi.SellerName = mInfo.SellerName;

                swdi.ShopId = mInfo.ShopId;

                swdi.ShopName = mInfo.ShopName;

                swdi.ShopRemark = mInfo.ShopRemark;

                swdi.Status = mInfo.Status.ToDescription();

                items.Add(swdi);

            }

            return items;

        }

     

    1. 店铺结算统计信息

    

        /// 

        /// 店铺结算统计信息

        /// 

        /// shopId">

        /// 

        public static SettlementStatistics GetShopSettlementStatistics(long? shopId, long? accountId = null)

        {

            var SettlementAmount = _iBillingService.GetSettlementAmount(shopId, accountId);

            var PlatCommission = _iBillingService.GetPlatCommission(shopId, accountId);

            var DistributorCommission = _iBillingService.GetDistributorCommission(shopId, accountId);

            return new SettlementStatistics()

            {

                DistributorCommission = DistributorCommission,

                PlatCommission = PlatCommission,

                SettlementAmount = SettlementAmount

            };

        }

       

    1. 平台结算统计信息

   public static PlatSettlementStatistics GetPlatSettlementStatistics()

        {

            var SettlementAmount = _iBillingService.GetSettlementAmount();

            var PlatCommission = _iBillingService.GetPlatCommission();

            var DistributorCommission = _iBillingService.GetDistributorCommission();

            return new PlatSettlementStatistics()

            {

                DistributorCommission = DistributorCommission,

                PlatCommission = PlatCommission,

                SettlementAmount = SettlementAmount

            };

        }

你可能感兴趣的:(java,数学建模,开发语言,mvc)