权重排序后取第一条呗
SELECT ID,属性,MIN(权重) FROM TABLE group by ID,属性
SELECT ID,属性,权重 FROM TABLE order by 权重 limit 1