using RFrameGenerate.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RFrameGenerate.BLL
{
    public class DistributionCommissionsManage
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="orderDetailDetail"></param>
        /// <param name="Level"></param>
        /// <returns></returns>
        public static T_BAS_DistributionCommissions GetEntityByOrderDetail(Guid orderDetailDetail,int Level)
        {
            using (var query = Factory.CreateT_BAS_DistributionCommissions())
            {
                var model= query.GetFirstData(a => a.OrderDetailGuid == orderDetailDetail && a.Level == Level);
                return model;
            }
        }
        
    }
}
