疯狂的狮子li
2023-01-16 ec004e9ba376c902c63d1450af3f85dd093205bf
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());
    }
}