|
|
|
@ -2226,7 +2226,7 @@ public class ServiceApplicationsService { |
|
|
|
// 设置时间范围(根据季度参数设置)
|
|
|
|
setTimeRangeByQuarter(queryForm); |
|
|
|
|
|
|
|
// 使用 SmartPageUtil 创建分页对象,查询律所列表
|
|
|
|
// 使用 SmartPageUtil 创建分页对象,查询律所列表(已按活动总数降序排序)
|
|
|
|
Page<?> page = SmartPageUtil.convert2PageQuery(queryForm); |
|
|
|
List<FirmActivityCountVO> firmList = serviceApplicationsDao.getFirmActivityCount(page, queryForm); |
|
|
|
|
|
|
|
@ -2268,6 +2268,13 @@ public class ServiceApplicationsService { |
|
|
|
lawyer.setActivityList(activityList); |
|
|
|
lawyer.setTotalCount(lawyerTotalCount); |
|
|
|
} |
|
|
|
|
|
|
|
// 按律师的活动总次数降序排序
|
|
|
|
firmLawyers.sort((a, b) -> { |
|
|
|
int countA = a.getTotalCount() != null ? a.getTotalCount() : 0; |
|
|
|
int countB = b.getTotalCount() != null ? b.getTotalCount() : 0; |
|
|
|
return Integer.compare(countB, countA); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
firm.setLawyerList(firmLawyers); |
|
|
|
@ -2304,13 +2311,6 @@ public class ServiceApplicationsService { |
|
|
|
firm.setTotalCount(totalCount); |
|
|
|
} |
|
|
|
|
|
|
|
// 按服务总次数降序排序
|
|
|
|
firmList.sort((a, b) -> { |
|
|
|
int countA = a.getTotalCount() != null ? a.getTotalCount() : 0; |
|
|
|
int countB = b.getTotalCount() != null ? b.getTotalCount() : 0; |
|
|
|
return Integer.compare(countB, countA); |
|
|
|
}); |
|
|
|
|
|
|
|
return SmartPageUtil.convert2PageResult(page, firmList); |
|
|
|
} |
|
|
|
|
|
|
|
|