疯狂的狮子Li
2023-01-08 9ebaf936c13f7654dc5d58962872b7b4cd054a07
ruoyi-demo/src/main/java/com/ruoyi/demo/controller/queue/PriorityDemo.java
@@ -11,7 +11,12 @@
 */
@Data
@NoArgsConstructor
public class PriorityDemo {
public class PriorityDemo implements Comparable<PriorityDemo> {
    private String name;
    private Integer orderNum;
    @Override
    public int compareTo(PriorityDemo other) {
        return Integer.compare(getOrderNum(), other.getOrderNum());
    }
}