fix update service probe error bug

This commit is contained in:
barnettZQG 2019-12-09 18:19:32 +08:00
parent 4a0c171dbc
commit 7507b5c6f8

View File

@ -58,6 +58,7 @@ func (t *ServiceProbeDaoImpl) UpdateModel(mo model.Interface) error {
return gorm.ErrRecordNotFound
}
probe.ID = oldProbe.ID
probe.CreatedAt = oldProbe.CreatedAt
}
return t.DB.Save(probe).Error
}