| | |
| | | return base.AddData(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询设备以及对应的协议信息。 |
| | | /// </summary> |
| | | /// <returns>返回设备信息以及对应协议信息的集合。</returns> |
| | | public async Task<List<DeviceInfoDTO>> QueryDeviceProInfos() |
| | | { |
| | | List<Dt_DeviceInfo> deviceInfos = await Db.Queryable<Dt_DeviceInfo>().Where(x => true).Includes(x => x.ProtocolList).ToListAsync(); |
| | | List<Dt_DeviceInfo> deviceInfos = await Db.Queryable<Dt_DeviceInfo>().Where(x => x.DeviceStatus == ((int)DeviceStatusEnum.Enable).ToString()).Includes(x => x.ProtocolList).ToListAsync(); |
| | | return _mapper.Map<List<DeviceInfoDTO>>(deviceInfos); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |