Ejemplo n.º 1
0
        /// <summary>
        /// 获取所有报警人员实时缓存
        /// </summary>
        /// <param name="prealRequest"></param>
        /// <returns></returns>
        public BasicResponse <List <R_PrealInfo> > GetAllAlarmPrealCacheList()
        {
            RPrealCacheGetByConditonRequest RealCacheRequest = new RPrealCacheGetByConditonRequest();

            RealCacheRequest.Predicate = a => a.Bjtype > 0;
            return(_RPRealCacheService.GetRealCache(RealCacheRequest));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取单个人员信息
        /// </summary>
        /// <returns></returns>
        public static R_PrealInfo GetOnePrealInfo(string bh)
        {
            R_PrealInfo item = null;
            RPrealCacheGetByConditonRequest request = new RPrealCacheGetByConditonRequest();

            request.Predicate = a => a.Bh == bh;
            var result = rPRealCacheService.GetRealCache(request);

            if (result.IsSuccess && result.Data != null && result.Data.Count > 0)
            {
                item = result.Data[0];
            }
            return(item);
        }