using RFrameGenerate.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using Wechat.Model;
using RFramework.SQLQuery;
using weixinopen;
using Wechat;
using RFramework.SQLServer;
using RFramework.SQLQuery.SQLExpands;
using RFrameGenerate.Common;
using RFrameGenerate.Model.PageModel;

namespace RFrameGenerate.BLL
{
    public class IntegralTradingManage
    {

        #region  获取当前用户的积分（根据积分流向）
        /// <summary>
        /// 获取当前用户的积分（根据积分流向）
        /// </summary>
        /// <param name="IntegralTo"></param>
        /// <returns></returns>
        public static List<T_INT_IntegralTradingWithLite> GetIntegralTradingWithLite(int? IntegralTo)
        {
            using (var query = Factory.CreateT_INT_IntegralTradingWithLite())
            {
                return query.GetList(c => c.MemberGuid == Common.CurrentUser.GetCurrUserGuid() && c.MerchantGuid == CurrentManage.MerchantGuid && c.IntegralTo == IntegralTo, true, c => c.TradeDate, DAL.Enums.OrderMethods.DESC, isFilterMerchant: false);
            }
        }
        #endregion








    }




}
