| | |
| | | { |
| | | return BaseDal.QueryData(x => x.DeviceType == deviceType).Select(x => new DeviceProtocolDetailDTO { DeviceType = x.DeviceType, DeviceProParamName = x.DeviceProParamName, ProtocalDetailValue = x.ProtocalDetailValue, ProtocolDetailDes = x.ProtocolDetailDes, ProtocolDetailType = x.ProtocolDetailType }).ToList(); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据设备ID获取协议明细信息 |
| | | /// </summary> |
| | | /// <param name="deviceId">设备ID</param> |
| | | /// <returns>返回设备协议明细DTO集合</returns> |
| | | public List<DeviceProtocolDetailDTO> GetDeviceProtocolDetailsByDeviceId(int deviceId) |
| | | { |
| | | return BaseDal.QueryData(x => x.DeviceId == deviceId).Select(x => new DeviceProtocolDetailDTO { DeviceId = x.DeviceId, DeviceProParamName = x.DeviceProParamName, ProtocalDetailValue = x.ProtocalDetailValue, ProtocolDetailDes = x.ProtocolDetailDes, ProtocolDetailType = x.ProtocolDetailType }).ToList(); |
| | | } |
| | | } |
| | | } |