Esempio n. 1
0
        /// <summary>
        /// 查询客户列表
        /// </summary>
        /// <param name="search"></param>
        /// <returns></returns>
        public IPagedList <CustomerDetailModel> Query(CustomerSearch search)
        {
            var _session = HttpContext.Current.Session;

            if (int.Parse(_session["Authority"].ToString()) > 0)
            {
                var employeeId = _session["EmployeeId"]?.ToString();
                search.EmployeeId = Guid.Parse(employeeId);
            }
            return(_customerInfoRepository.Query(search));;
        }