/// <summary> /// 分页获取平台的收支明细 /// </summary> /// <param name="query">查询实体</param> /// <returns></returns> public static List <PlatAccountItem> GetPlatAccountItemNoPage(PlatAccountItemQuery query) { var models = _iBillingService.GetPlatAccountItemNoPage(query); List <PlatAccountItem> items = new List <PlatAccountItem>(); foreach (var m in 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); } return(items); }