添加装置信息
This commit is contained in:
@@ -229,6 +229,7 @@ public class CsDeviceServiceImpl implements ICsDeviceService {
|
|||||||
CsLedgerParam param = new CsLedgerParam();
|
CsLedgerParam param = new CsLedgerParam();
|
||||||
AppLineTopologyDiagramPO appLineTopologyDiagramPo = new AppLineTopologyDiagramPO();
|
AppLineTopologyDiagramPO appLineTopologyDiagramPo = new AppLineTopologyDiagramPO();
|
||||||
po.setName(item.getName());
|
po.setName(item.getName());
|
||||||
|
po.setDeviceId(vo.getId());
|
||||||
po.setPosition(item.getPosition());
|
po.setPosition(item.getPosition());
|
||||||
po.setClDid(0);
|
po.setClDid(0);
|
||||||
if (Objects.equals(DicDataEnum.GRID_SIDE.getCode(),location)){
|
if (Objects.equals(DicDataEnum.GRID_SIDE.getCode(),location)){
|
||||||
@@ -529,7 +530,7 @@ public class CsDeviceServiceImpl implements ICsDeviceService {
|
|||||||
reqAndResParam.setPri(AccessEnum.FIRST_CHANNEL.getCode());
|
reqAndResParam.setPri(AccessEnum.FIRST_CHANNEL.getCode());
|
||||||
reqAndResParam.setType(Integer.parseInt(TypeEnum.TYPE_1.getCode()));
|
reqAndResParam.setType(Integer.parseInt(TypeEnum.TYPE_1.getCode()));
|
||||||
reqAndResParam.setExpire(-1);
|
reqAndResParam.setExpire(-1);
|
||||||
logger.info("询问主题报文为:" + new Gson().toJson(reqAndResParam));
|
logger.info("询问主题报文为:{}", new Gson().toJson(reqAndResParam));
|
||||||
publisher.send("/Pfm/DevTopic/"+nDid, new Gson().toJson(reqAndResParam),1,false);
|
publisher.send("/Pfm/DevTopic/"+nDid, new Gson().toJson(reqAndResParam),1,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -549,7 +550,7 @@ public class CsDeviceServiceImpl implements ICsDeviceService {
|
|||||||
accessDto.setNdid(nDid);
|
accessDto.setNdid(nDid);
|
||||||
accessDto.setDevType(devType);
|
accessDto.setDevType(devType);
|
||||||
reqAndResParam.setMsg(accessDto);
|
reqAndResParam.setMsg(accessDto);
|
||||||
logger.info("注册报文为:" + new Gson().toJson(reqAndResParam));
|
logger.info("注册报文为:{}", new Gson().toJson(reqAndResParam));
|
||||||
publisher.send("/Pfm/DevReg/"+nDid, new Gson().toJson(reqAndResParam),1,false);
|
publisher.send("/Pfm/DevReg/"+nDid, new Gson().toJson(reqAndResParam),1,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user