目录
1 Himall商城BillingApplication
1.1 分页获取已结算订单列表
1.2 获取已结算订单
public static QueryPageModel
{
var orders = new QueryPageModel
var model = _iBillingService.GetSettlementOrders(query);
orders.Total = model.Total;
var SettledOrders = new List
foreach (var m in model.Models)
{
var o = new SettledOrders();
o.DistributorCommission = m.BrokerageAmount - m.ReturnBrokerageAmount;
o.OrderAmount = m.OrderAmount;
o.OrderFinshTime = m.OrderFinshDate.ToString("yyyy-MM-dd HH:mm:ss");
o.OrderId = m.OrderId;
o.PlatCommission = m.CommissionAmount - m.RefundCommisAmount;
o.RefundAmount = m.RefundTotalAmount;
o.SettledTime = m.Date.ToString("yyyy-MM-dd HH:mm:ss");
o.SettlementAmount = m.SettlementAmount;
o.ShopName = m.ShopName;
o.ShopId = m.ShopId;
o.PaymentTypeName = m.PaymentTypeName;
o.FreightAmount = m.FreightAmount;
SettledOrders.Add(o);
}
orders.Models = SettledOrders;
return orders;
}
public static List
{
var models = _iBillingService.GetSettlementOrdersNoPage(query);
var settledOrders = new List
foreach (var m in models)
{
var o = new SettledOrders();
o.DistributorCommission = m.BrokerageAmount - m.ReturnBrokerageAmount;
o.OrderAmount = m.OrderAmount;
o.OrderFinshTime = m.OrderFinshDate.ToString("yyyy-MM-dd HH:mm:ss");
o.OrderId = m.OrderId;
o.PlatCommission = m.CommissionAmount - m.RefundCommisAmount;
o.RefundAmount = m.RefundTotalAmount;
o.SettledTime = m.Date.ToString("yyyy-MM-dd HH:mm:ss");
o.SettlementAmount = m.SettlementAmount;
o.ShopName = m.ShopName;
o.ShopId = m.ShopId;
o.PaymentTypeName = m.PaymentTypeName;
settledOrders.Add(o);
}
return settledOrders;
}