List<ProjectQuota> projectQuotas = new ArrayList<>();
//根据项目名称排序
projectQuotas.sort((o1, o2) -> {
Comparator cmp = Collator.getInstance(Locale.CHINA);
return cmp.compare(o1.getProjectName(), o2.getProjectName());
}
);
public class ProjectQuota extends BaseEntity {
private static final long serialVersionUID = -1862263661327621237L;
@ApiModelProperty("项目id")
private Integer projectId;
@ApiModelProperty("项目名称")
private String projectName;
@ApiModelProperty("并发配额")
private Integer concurrentQuotaCount;
@ApiModelProperty("已使用的并发配额")
private Integer usedConcurrentQuotaCount;
@ApiModelProperty("变更配额")
private Integer changeQuotaCount;
@ApiModelProperty("已使用的变更配额")
private Integer usedChangeQuotaCount;
@ApiModelProperty("已删除配额")
private Integer deleteQuotaCount;
@ApiModelProperty("已删除配额")
private Integer totalCount;
}