目录
public static QueryPageModel<ShopAccountItem> GetShopAccountItem(ShopAccountItemQuery query)
{
var model = _iBillingService.GetShopAccountItem(query);
return new QueryPageModel<ShopAccountItem>()
{
Total = model.Total,
Models = model.Models.Map<List<ShopAccountItem>>()
};
}
public static List<ShopAccountItem> GetShopAccountItemNoPage(ShopAccountItemQuery query)
{
var models = _iBillingService.GetShopAccountItemNoPage(query);
return models.Map<List<ShopAccountItem>>();
}
public static QueryPageModel<StatisticsPendingSettlement> StatisticsPendingSettlementOrders(StatisticsPendingSettlementQuery query)
{
return _iBillingService.StatisticsPendingSettlementOrders(query);
}
public static List<StatisticsPendingSettlement> StatisticsPendingSettlementOrdersNoPage(StatisticsPendingSettlementQuery query)
{
return _iBillingService.StatisticsPendingSettlementOrdersNoPage(query);
}
public static QueryPageModel<PlatAccountItem> GetPlatAccountItem(PlatAccountItemQuery query)
{
var model = _iBillingService.GetPlatAccountItem(query);
QueryPageModel<PlatAccountItem> item = new QueryPageModel<PlatAccountItem>();
item.Total = model.Total;
List<PlatAccountItem> items = new List<PlatAccountItem>();
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;
}