|
@@ -113,16 +113,16 @@ public class IotMaintainController {
|
|
|
@PreAuthorize("@ss.hasPermission('rq:iot-maintain:query')")
|
|
|
public CommonResult<PageResult<IotMaintainRespVO>> getIotMaintainPage(@Valid IotMaintainPageReqVO pageReqVO) {
|
|
|
PageResult<IotMaintainDO> pageResult = iotMaintainService.getIotMaintainPage(pageReqVO);
|
|
|
- for (IotMaintainDO iotMaintainDO : pageResult.getList()) {
|
|
|
- Long deviceId = iotMaintainDO.getDeviceId();
|
|
|
- if (Objects.nonNull(deviceId)) {
|
|
|
- IotDeviceDO iotDevice = iotDeviceService.getIotDevice(deviceId);
|
|
|
- if (Objects.nonNull(iotDevice)) {
|
|
|
- iotMaintainDO.setDeviceCode(iotDevice.getDeviceCode());
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+// for (IotMaintainDO iotMaintainDO : pageResult.getList()) {
|
|
|
+// Long deviceId = iotMaintainDO.getDeviceId();
|
|
|
+// if (Objects.nonNull(deviceId)) {
|
|
|
+// IotDeviceDO iotDevice = iotDeviceService.getIotDevice(deviceId);
|
|
|
+// if (Objects.nonNull(iotDevice)) {
|
|
|
+// iotMaintainDO.setDeviceCode(iotDevice.getDeviceCode());
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
return success(BeanUtils.toBean(pageResult, IotMaintainRespVO.class));
|
|
|
}
|
|
|
|