예제 #1
0
        /// <summary>
        /// 分页查询店铺提现记录
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public static QueryPageModel <ShopWithDrawItem> GetShopWithDraw(WithdrawQuery query)
        {
            var model = _iBillingService.GetShopWithDraw(query);

            QueryPageModel <ShopWithDrawItem> Models = new QueryPageModel <ShopWithDrawItem>();

            List <ShopWithDrawItem> items = new List <ShopWithDrawItem>();

            foreach (ShopWithDrawInfo mInfo in model.Models)
            {
                ShopWithDrawItem swdi = new ShopWithDrawItem();

                swdi.Id          = mInfo.Id;
                swdi.Account     = mInfo.Account;
                swdi.AccountName = mInfo.AccountName;
                swdi.AccountNo   = long.Parse(mInfo.CashNo);
                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);
            }
            Models.Models = items;
            Models.Total  = model.Total;
            return(Models);
        }