|
...
|
...
|
@@ -10,6 +10,8 @@ import com.ruoyi.common.core.domain.ApiName; |
|
|
|
import com.ruoyi.common.core.domain.DeviceCommandApi;
|
|
|
|
import com.ruoyi.common.core.domain.DeviceCommandApiParameter;
|
|
|
|
import com.zhonglai.luhui.dao.service.PublicService;
|
|
|
|
import com.zhonglai.luhui.device.domain.IotDevice;
|
|
|
|
import com.zhonglai.luhui.device.mapper.IotDeviceMapper;
|
|
|
|
import com.zhonglai.luhui.device.service.IIotDeviceService;
|
|
|
|
import com.zhonglai.luhui.rocketmq.service.RocketMqService;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
...
|
...
|
@@ -31,6 +33,9 @@ public class IotTerminalServiceImpl implements IIotTerminalService |
|
|
|
private IotTerminalMapper iotTerminalMapper;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private IotDeviceMapper iotDeviceMapper;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private PublicService publicService;
|
|
|
|
|
|
|
|
@Autowired
|
|
...
|
...
|
@@ -44,7 +49,13 @@ public class IotTerminalServiceImpl implements IIotTerminalService |
|
|
|
@Override
|
|
|
|
public IotTerminal selectIotTerminalById(String id)
|
|
|
|
{
|
|
|
|
return iotTerminalMapper.selectIotTerminalById(id);
|
|
|
|
IotTerminal iotTerminal = iotTerminalMapper.selectIotTerminalById(id);
|
|
|
|
if(null != iotTerminal)
|
|
|
|
{
|
|
|
|
IotDevice iotDevice = iotDeviceMapper.selectIotDeviceByClient_id(iotTerminal.getDevice_id());
|
|
|
|
iotTerminal.setIotDevice(iotDevice);
|
|
|
|
}
|
|
|
|
return iotTerminal;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|