This commit is contained in:
2023-10-13 11:04:59 +08:00
parent 6e12027e69
commit 8b77c4fe8c

View File

@@ -343,12 +343,6 @@ public class MqttMessageHandler {
} }
//询问设备软件信息 //询问设备软件信息
askDevData(nDid,version,1,mid); askDevData(nDid,version,1,mid);
mid++;
//询问设备容量信息
askDevData(nDid,version,2,mid);
mid++;
//询问监测点pt/ct信息
askDevData(nDid,version,3,mid);
} else { } else {
log.info(AccessResponseEnum.ACCESS_RESPONSE_ERROR.getMessage()); log.info(AccessResponseEnum.ACCESS_RESPONSE_ERROR.getMessage());
logDto.setResult(0); logDto.setResult(0);
@@ -377,6 +371,8 @@ public class MqttMessageHandler {
csSoftInfoService.removeById(soft); csSoftInfoService.removeById(soft);
} }
equipmentFeignClient.updateSoftInfo(nDid,csSoftInfoPo.getId()); equipmentFeignClient.updateSoftInfo(nDid,csSoftInfoPo.getId());
//询问设备容量信息
askDevData(nDid,version,2,(res.getMid()+1));
} catch (ParseException e) { } catch (ParseException e) {
e.printStackTrace(); e.printStackTrace();
} }
@@ -408,6 +404,8 @@ public class MqttMessageHandler {
devCapacityFeignClient.addList(list); devCapacityFeignClient.addList(list);
//3.更新设备模块个数 //3.更新设备模块个数
equipmentFeignClient.updateModuleNumber(nDid,(devInfo.size()-1)); equipmentFeignClient.updateModuleNumber(nDid,(devInfo.size()-1));
//4.询问监测点pt/ct信息
askDevData(nDid,version,3,(res.getMid()+1));
} else if (Objects.equals(res.getDid(),2)) { } else if (Objects.equals(res.getDid(),2)) {
logDto.setOperate(nDid + "更新电网侧、负载侧监测点信息"); logDto.setOperate(nDid + "更新电网侧、负载侧监测点信息");
//1.更新电网侧、负载侧监测点相关信息 //1.更新电网侧、负载侧监测点相关信息