|
|
@@ -242,4 +242,17 @@ public class PerformanceApplyService {
|
|
|
apply.setScore(scores1);
|
|
|
performanceApplyRepo.save(apply);
|
|
|
}
|
|
|
+
|
|
|
+ /*
|
|
|
+ 获取相关
|
|
|
+ */
|
|
|
+ public List<PerformanceApply> related(Long id) {
|
|
|
+ PerformanceApply apply = performanceApplyRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|
|
|
+ List<PerformanceApply> applies = performanceApplyRepo.findAllByStatusAndPerformanceId(ApplyStatus.PASS, apply
|
|
|
+ .getPerformanceId());
|
|
|
+ return applies.stream()
|
|
|
+ .filter(app -> app.getShowStartTime().isAfter(apply.getShowStartTime()))
|
|
|
+ .sorted(Comparator.comparing(PerformanceApply::getShowStartTime))
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ }
|
|
|
}
|