|
|
@@ -56,10 +56,6 @@ public enum ProjectStatusEnum { |
|
|
|
*/ |
|
|
|
ARCHIVED(30000, "已归档"); |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
System.out.println(Arrays.stream(ProjectStatusEnum.values()).filter(w -> w.getCode() >= 10010).collect(Collectors.toList())); |
|
|
|
} |
|
|
|
|
|
|
|
private Integer code; |
|
|
|
private String desc; |
|
|
|
|
|
|
@@ -87,4 +83,8 @@ public enum ProjectStatusEnum { |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
public boolean eq(int code) { |
|
|
|
return this.getCode().equals(code); |
|
|
|
} |
|
|
|
|
|
|
|
} |