using Edu.Model.ViewModel.Customer;
using Edu.Repository.Customer;
using System;
using System.Collections.Generic;
using System.Text;

namespace Edu.Module.Customer
{
    /// <summary>
    /// 客户幸福存折和返佣处理类
    /// </summary>
    public class CustomerBalanceDetailModule
    {
        /// <summary>
        /// 客户幸福存折和返佣仓储层对象
        /// </summary>
        private readonly RB_Customer_BalanceDetailRepository customer_BalanceDetailRepository = new RB_Customer_BalanceDetailRepository();

        /// <summary>
        /// 获取客户幸福存折分页列表
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="rowsCount"></param>
        /// <param name="query"></param>
        /// <returns></returns>
        public List<RB_Customer_BalanceDetail_ViewModel> GetCustomerBalanceDetailPageModule(int pageIndex, int pageSize, out long rowsCount, RB_Customer_BalanceDetail_ViewModel query)
        {
            var list = customer_BalanceDetailRepository.GetCustomerBalanceDetailPageRepository(pageIndex, pageSize, out rowsCount, query);
            return list;
        }


        /// <summary>
        /// 获取客户返佣或幸福存折列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public List<RB_Customer_BalanceDetail_ViewModel> GetCustomerBalanceDetailListModule(RB_Customer_BalanceDetail_ViewModel query)
        {
            var list = customer_BalanceDetailRepository.GetCustomerBalanceDetailListRepository(query);
            return list;
        }
    }
}
