优化mtr探测策略、增加ipv6相关字段
This commit is contained in:
+6
@@ -687,6 +687,12 @@ public class RmResourceRegistrationServiceImpl implements IRmResourceRegistratio
|
||||
updateData.setAgentVersion(rmResourceRegistration.getAgentVersion());
|
||||
needUpdate = true;
|
||||
}
|
||||
if(exits.getHardwareSn() == null ||
|
||||
!StringUtils.equals(rmResourceRegistration.getHardwareSn(),exits.getHardwareSn())){
|
||||
// 如果服务器已注册 增加SN信息
|
||||
updateData.setHardwareSn(rmResourceRegistration.getHardwareSn());
|
||||
needUpdate = true;
|
||||
}
|
||||
if(needUpdate){
|
||||
updateData.setId(exits.getId());
|
||||
rmResourceRegistrationMapper.updateRmResourceRegistration(updateData);
|
||||
|
||||
+1
@@ -73,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
client_id VARCHAR(200) COMMENT '客户端ID',
|
||||
public_ip VARCHAR(45) COMMENT '公网IP地址',
|
||||
packet_loss_rate DECIMAL(5,2) COMMENT '丢包率(%)',
|
||||
hop_result LONGTEXT COMMENT '每一跳解析结果(JSON形式)',
|
||||
create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
create_by VARCHAR(64) COMMENT '创建人',
|
||||
|
||||
Reference in New Issue
Block a user