|
|
|
@ -295,25 +295,43 @@ public class ScreenDeptEventEfficiencyServiceImpl extends BaseServiceImpl<Screen |
|
|
|
//升序
|
|
|
|
if (NumConstant.ONE_STR.equals(formDTO.getSort())) { |
|
|
|
//事件数
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getEventCount)).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getEventCount) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedRatio) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedCount)).collect(Collectors.toList()); |
|
|
|
|
|
|
|
} else if (NumConstant.TWO_STR.equals(formDTO.getSort())) { |
|
|
|
//结案数
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedCount)).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedCount) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedRatio) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getEventCount) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} else if (NumConstant.THREE_STR.equals(formDTO.getSort())) { |
|
|
|
//办结率
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio)).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedCount) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getEventCount) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
//降序
|
|
|
|
if (NumConstant.ONE_STR.equals(formDTO.getSort())) { |
|
|
|
//事件数
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getEventCount).reversed()).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getEventCount).reversed() |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedRatio, Comparator.reverseOrder()) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedCount, Comparator.reverseOrder()) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} else if (NumConstant.TWO_STR.equals(formDTO.getSort())) { |
|
|
|
//结案数
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedCount).reversed()).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedCount).reversed() |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedRatio, Comparator.reverseOrder()) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getEventCount, Comparator.reverseOrder()) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} else if (NumConstant.THREE_STR.equals(formDTO.getSort())) { |
|
|
|
//办结率
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio).reversed()).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio).reversed() |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedCount, Comparator.reverseOrder()) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getEventCount, Comparator.reverseOrder()) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
@ -322,25 +340,43 @@ public class ScreenDeptEventEfficiencyServiceImpl extends BaseServiceImpl<Screen |
|
|
|
//升序
|
|
|
|
if (NumConstant.ONE_STR.equals(formDTO.getSort())) { |
|
|
|
//响应率
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getResponseRatio)).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getResponseRatio) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getSatisfiedRatio) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedRatio) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} else if (NumConstant.TWO_STR.equals(formDTO.getSort())) { |
|
|
|
//办结率
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio)).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getSatisfiedRatio) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getResponseRatio) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} else if (NumConstant.THREE_STR.equals(formDTO.getSort())) { |
|
|
|
//满意率
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getSatisfiedRatio)).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getSatisfiedRatio) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedRatio) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getResponseRatio) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
//降序
|
|
|
|
if (NumConstant.ONE_STR.equals(formDTO.getSort())) { |
|
|
|
//响应率
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getResponseRatio).reversed()).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getResponseRatio).reversed() |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getSatisfiedRatio, Comparator.reverseOrder()) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedRatio, Comparator.reverseOrder()) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} else if (NumConstant.TWO_STR.equals(formDTO.getSort())) { |
|
|
|
//办结率
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio).reversed()).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio).reversed() |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getSatisfiedRatio, Comparator.reverseOrder()) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getResponseRatio, Comparator.reverseOrder()) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} else if (NumConstant.THREE_STR.equals(formDTO.getSort())) { |
|
|
|
//满意率
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getSatisfiedRatio).reversed()).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getSatisfiedRatio).reversed() |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedRatio, Comparator.reverseOrder()) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getResponseRatio, Comparator.reverseOrder()) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -348,7 +384,10 @@ public class ScreenDeptEventEfficiencyServiceImpl extends BaseServiceImpl<Screen |
|
|
|
//默认排序
|
|
|
|
if (NumConstant.TWO_STR.equals(formDTO.getType())) { |
|
|
|
//直属部门
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio).reversed()).collect(Collectors.toList()); |
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getClosedRatio).reversed() |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getClosedCount, Comparator.reverseOrder()) |
|
|
|
.thenComparing(EfficiencyEvaluationResultDTO::getEventCount, Comparator.reverseOrder()) |
|
|
|
).collect(Collectors.toList()); |
|
|
|
} else { |
|
|
|
//下级组织
|
|
|
|
list = list.stream().sorted(Comparator.comparing(EfficiencyEvaluationResultDTO::getSatisfiedRatio).reversed() |
|
|
|
|