/// <summary> /// 获取店铺账户 /// </summary> /// <returns></returns> public ShopAccountModel GetShopAccount() { CheckShopManageLogin(); var shop = CurrentShop; long shopId = shop.Id; var shopAccount = BillingApplication.GetShopAccount(shopId); ShopAccountModel model = new ShopAccountModel() { PeriodSettlement = shopAccount.PendingSettlement, Settlement = shopAccount.Settled, ShopName = shopAccount.ShopName, Balance = shopAccount.Balance, LastSettlement = BillingApplication.GetLastSettlementByShopId(shopId), LastSettlementModel = BillingApplication.GetLastSettlementInfo(), IsShowWithDraw = CurrentUser.IsMainAccount }; return(model); }