public BasicResponse <List <AreaInfo> > GetMasterAreaInfoByAssId(LongIdRequest request)
        {
            var req3          = new EmergencyLinkageConfigCacheGetAllRequest();
            var res3          = _sysEmergencyLinkageCacheService.GetAllSysEmergencyLinkageCache(req3);
            var linkageInfo   = res3.Data.FirstOrDefault(a => a.MasterAreaAssId == request.Id.ToString());
            var masterAreaAss = linkageInfo == null ? new List <EmergencyLinkageMasterAreaAssInfo>() : linkageInfo.MasterAreas;


            var req = new AreaCacheGetAllRequest();
            var res = _areaCacheService.GetAllAreaCache(req);

            if (res.Code != 100)
            {
                throw new Exception(res.Message);
            }
            var allArea = res.Data;
            //var allMasterAreaAss = _emergencyLinkageMasterAreaAssRepository.Datas.ToList();

            var res2 = from a in masterAreaAss
                       join b in allArea on a.AreaId equals b.Areaid into temp
                       from ab in temp.DefaultIfEmpty()
                       //where a.MasterAreaAssId == request.Id.ToString()
                       select ab;

            var retLis = res2.ToList();
            var ret    = new BasicResponse <List <AreaInfo> >()
            {
                Data = retLis
            };

            return(ret);
        }
        public static List <AreaInfo> GetAllAreaInfo()
        {
            List <AreaInfo>        items   = new List <AreaInfo>();
            AreaCacheGetAllRequest request = new AreaCacheGetAllRequest();
            var result = areaCacheService.GetAllAreaCache(request);

            if (result.IsSuccess && result.Data != null)
            {
                items = result.Data;
            }
            return(items);
        }
 /// <summary>
 /// 获取所有区域缓存
 /// </summary>
 /// <param name="arearequest"></param>
 /// <returns></returns>
 public BasicResponse <List <AreaInfo> > GetAllAreaCache(AreaCacheGetAllRequest arearequest)
 {
     return(_AreaCacheService.GetAllAreaCache(arearequest));
 }