| | |
| | | import com.iailab.framework.common.pojo.PageParam; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.framework.common.util.object.ConvertUtils; |
| | | import com.iailab.framework.excel.core.util.ExcelUtils; |
| | | import com.iailab.module.data.channel.modbus.collector.ModBusCollector; |
| | | import com.iailab.module.data.channel.modbus.entity.ChannelModBusTagEntity; |
| | | import com.iailab.module.data.channel.modbus.entity.ChannelModBusTagEntity; |
| | |
| | | List<ModBusTagRespVO> vos = page.getList().stream().map(entity -> { |
| | | |
| | | ModBusTagRespVO vo = BeanUtils.toBean(entity,ModBusTagRespVO.class); |
| | | vo.setDataValue(modBusCollector.getTagValue(reqVO.getDeviceId(),entity.getTagName())); |
| | | vo.setDataValue(modBusCollector.getTagValue(entity.getDevice(),entity.getTagName())); |
| | | return vo; |
| | | }).collect(Collectors.toList()); |
| | | |
| | |
| | | |
| | | return success(pageResultVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询设备详情 |
| | | * |