public override void Load() { //try //{ var respose = networkModuleService.GetNetworkModuleList(); //List<Jc_WzInfo> PositionList = positionService.GetPositionList().Data; List <Jc_MacInfo> NetworkModuleList = respose.Data; //foreach (Jc_MacInfo NetworkModule in NetworkModuleList) //{ // var result = PositionList.Find(a => a.WzID == NetworkModule.Wzid); // if (result != null) // { // NetworkModule.Wz = result.Wz;//赋值安装位置 // } // else // { // NetworkModule.Wz = null; // } //} if (respose.Data != null && respose.IsSuccess) { _cache.Clear(); _cache = NetworkModuleList; } //} //catch (Exception ex) //{ // LogHelper.Error(string.Format("{0}:加载缓存失败!" + "\r\n" + ex.Message, CacheName)); //} }
public BasicResponse <List <Jc_MacInfo> > GetNetworkModuleList(Sys.Safety.Request.NetworkModule.NetworkModuleGetListRequest NetworkModuleRequest) { return(_NetworkModuleService.GetNetworkModuleList(NetworkModuleRequest)); }