|
@@ -1,6 +1,7 @@
|
|
|
package com.yunfeiyun.agmp.iotm.web.service.impl;
|
|
package com.yunfeiyun.agmp.iotm.web.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+import com.yunfeiyun.agmp.common.utils.SecurityUtils;
|
|
|
import com.yunfeiyun.agmp.iot.common.domain.IotDeviceconn;
|
|
import com.yunfeiyun.agmp.iot.common.domain.IotDeviceconn;
|
|
|
import com.yunfeiyun.agmp.iot.common.domain.TosDevicetype;
|
|
import com.yunfeiyun.agmp.iot.common.domain.TosDevicetype;
|
|
|
import com.yunfeiyun.agmp.iot.common.enums.IotDeviceconnTypeEnum;
|
|
import com.yunfeiyun.agmp.iot.common.enums.IotDeviceconnTypeEnum;
|
|
@@ -10,7 +11,6 @@ import com.yunfeiyun.agmp.iotm.web.domain.resvo.IotDevicetypeListResVo;
|
|
|
import com.yunfeiyun.agmp.iotm.web.domain.resvo.TosDevicetypeResVo;
|
|
import com.yunfeiyun.agmp.iotm.web.domain.resvo.TosDevicetypeResVo;
|
|
|
import com.yunfeiyun.agmp.iotm.web.mapper.IotDeviceconnMapper;
|
|
import com.yunfeiyun.agmp.iotm.web.mapper.IotDeviceconnMapper;
|
|
|
import com.yunfeiyun.agmp.iotm.web.mapper.TosDevicetypeMapper;
|
|
import com.yunfeiyun.agmp.iotm.web.mapper.TosDevicetypeMapper;
|
|
|
-import com.yunfeiyun.agmp.iotm.web.service.IIotDeviceconnService;
|
|
|
|
|
import com.yunfeiyun.agmp.iotm.web.service.ITosDevicetypeService;
|
|
import com.yunfeiyun.agmp.iotm.web.service.ITosDevicetypeService;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -156,4 +156,23 @@ public class TosDevicetypeServiceImpl implements ITosDevicetypeService
|
|
|
}
|
|
}
|
|
|
return iotDevicetypeListResVoList;
|
|
return iotDevicetypeListResVoList;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 创建设备时查询设备类型列表
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param tosDevicetype 设备类型
|
|
|
|
|
+ * @return 设备类型集合
|
|
|
|
|
+ */
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<IotDevicetypeListResVo> listByCreateDev(TosDevicetype tosDevicetype) {
|
|
|
|
|
+ tosDevicetype.setTid(SecurityUtils.getTid());
|
|
|
|
|
+ List<TosDevicetype> tosDevicetypeList = tosDevicetypeMapper.selectTosDevicetypeListyCreateDev(tosDevicetype);
|
|
|
|
|
+ List<IotDevicetypeListResVo> iotDevicetypeListResVoList = new ArrayList<>();
|
|
|
|
|
+ for (TosDevicetype devicetype : tosDevicetypeList) {
|
|
|
|
|
+ IotDevicetypeListResVo iotDevicetypeListResVo = new IotDevicetypeListResVo();
|
|
|
|
|
+ BeanUtils.copyProperties(devicetype, iotDevicetypeListResVo);
|
|
|
|
|
+ iotDevicetypeListResVoList.add(iotDevicetypeListResVo);
|
|
|
|
|
+ }
|
|
|
|
|
+ return iotDevicetypeListResVoList;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|