|
@@ -3,6 +3,7 @@ package com.hfln.portal.infrastructure.gateway.impl;
|
|
|
import cn.hfln.framework.extension.BizException;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.hfln.portal.common.constant.mqtt.topic.TopicConstants;
|
|
|
+import com.hfln.portal.common.dto.data.device.DevInfoDTO;
|
|
|
import com.hfln.portal.common.dto.data.oss.OtaFileDTO;
|
|
|
import com.hfln.portal.common.dto.data.pub.DicItemDto;
|
|
|
import com.hfln.portal.common.request.web.UpdateOTAParams;
|
|
@@ -98,12 +99,15 @@ public class PubGatewayImpl implements PubGateway {
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public String queryClientIdByDeviD(Long devId) {
|
|
|
+ public DevInfoDTO queryClientIdByDeviD(Long devId) {
|
|
|
DevInfo devInfo = devInfoService.getById(devId);
|
|
|
if (devInfo == null) {
|
|
|
throw new BizException(ErrorEnum.DEVICE_IS_NOT_EXIST.getErrorCode(), ErrorEnum.DEVICE_IS_NOT_EXIST.getErrorMessage());
|
|
|
}
|
|
|
- return devInfo.getClientId();
|
|
|
+ DevInfoDTO dto = new DevInfoDTO();
|
|
|
+ dto.setClientId(devInfo.getClientId());
|
|
|
+ dto.setDevName(devInfo.getDevName());
|
|
|
+ return dto;
|
|
|
}
|
|
|
}
|
|
|
|