|
|
@@ -1,6 +1,7 @@
|
|
|
package cn.iocoder.yudao.module.pms.service.devicegroup;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.devicegroup.IotDeviceGroupDetailPageReqVO;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.devicegroup.IotDeviceGroupDetailSaveReqVO;
|
|
|
@@ -114,6 +115,9 @@ public class IotDeviceGroupServiceImpl implements IotDeviceGroupService {
|
|
|
public PageResult<IotDeviceGroupDetailDO> getDeviceGroupList(IotDeviceGroupDetailPageReqVO reqVO) {
|
|
|
IotDeviceDO iotDevice = iotDeviceService.getIotDevice(reqVO.getDeviceId());
|
|
|
List<IotDeviceGroupDetailDO> deviceCodes = iotDeviceGroupDetailMapper.selectList("device_code", iotDevice.getDeviceCode());
|
|
|
+ if (CollUtil.isEmpty(deviceCodes)) {
|
|
|
+ return new PageResult<>();
|
|
|
+ }
|
|
|
IotDeviceGroupDetailDO iotDeviceGroupDetailDO = deviceCodes.get(0);
|
|
|
Long groupId = iotDeviceGroupDetailDO.getGroupId();
|
|
|
// IotDeviceGroupDetailPageReqVO pageReqVO = new IotDeviceGroupDetailPageReqVO();
|