ruoyi-demo/src/main/java/com/ruoyi/demo/controller/queue/PriorityDemo.java
@@ -2,7 +2,6 @@ import lombok.Data; import lombok.NoArgsConstructor; import org.jetbrains.annotations.NotNull; /** * 实体类 注意不允许使用内部类 否则会找不到类 @@ -17,7 +16,7 @@ private Integer orderNum; @Override public int compareTo(@NotNull PriorityDemo other) { public int compareTo(PriorityDemo other) { return Integer.compare(getOrderNum(), other.getOrderNum()); } }