fix: 设计师绩效榜单默认按净积分排序
This commit is contained in:
parent
dba923271f
commit
da2cc25c6e
@ -970,8 +970,12 @@ public class AnalyticsService {
|
||||
}
|
||||
}
|
||||
|
||||
// 按完成量排序
|
||||
designerStats.sort((a, b) -> b.getCompletedCount().compareTo(a.getCompletedCount()));
|
||||
// 按净积分(有效积分)降序排序
|
||||
designerStats.sort((a, b) -> {
|
||||
BigDecimal netA = a.getNetScore() != null ? a.getNetScore() : BigDecimal.ZERO;
|
||||
BigDecimal netB = b.getNetScore() != null ? b.getNetScore() : BigDecimal.ZERO;
|
||||
return netB.compareTo(netA);
|
||||
});
|
||||
// 按当前负载排序
|
||||
workloadStats.sort((a, b) -> b.getCurrentLoad().compareTo(a.getCurrentLoad()));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user