|
@@ -8,7 +8,7 @@ import lombok.Setter;
|
|
|
|
|
|
@Getter
|
|
@Getter
|
|
@Setter
|
|
@Setter
|
|
-public class ApplyVO implements IModel {
|
|
|
|
|
|
+public class ApplyVO implements IModel, Comparable<ApplyVO> {
|
|
|
|
|
|
private static final long serialVersionUID = 2804383719693396546L;
|
|
private static final long serialVersionUID = 2804383719693396546L;
|
|
|
|
|
|
@@ -52,4 +52,15 @@ public class ApplyVO implements IModel {
|
|
@ApiModelProperty(value = "准考证号", hidden = true)
|
|
@ApiModelProperty(value = "准考证号", hidden = true)
|
|
private String ticketNumber;
|
|
private String ticketNumber;
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public int compareTo(ApplyVO obj) {
|
|
|
|
+ if (this.getTimePeriodStart() > obj.getTimePeriodStart()) {
|
|
|
|
+ return -1;
|
|
|
|
+ } else if (this.getTimePeriodStart() < obj.getTimePeriodStart()) {
|
|
|
|
+ return 1;
|
|
|
|
+ } else {
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|