lrj
23 小时以前 ae3349d2ff53767b5bc9cb30e1bf7e15f9e814ee
backend/src/main/java/com/rongyichuang/player/service/ActivityPlayerRatingService.java
@@ -206,7 +206,10 @@
     */
    public CurrentJudgeRatingResponse getCurrentJudgeRating(Long activityPlayerId) {
        Long currentJudgeId = userContextUtil.getCurrentJudgeId();
        log.info("getCurrentJudgeRating - activityPlayerId: {}, currentJudgeId: {}", activityPlayerId, currentJudgeId);
        if (currentJudgeId == null) {
            log.warn("getCurrentJudgeRating - currentJudgeId is null");
            return null;
        }
        
@@ -214,9 +217,12 @@
                .findByActivityPlayerIdAndJudgeId(activityPlayerId, currentJudgeId);
        
        if (!ratingOpt.isPresent()) {
            log.info("getCurrentJudgeRating - No rating found for activityPlayerId: {} and judgeId: {}", activityPlayerId, currentJudgeId);
            return null;
        }
        
        log.info("getCurrentJudgeRating - Found rating with id: {}", ratingOpt.get().getId());
        ActivityPlayerRating rating = ratingOpt.get();
        CurrentJudgeRatingResponse response = new CurrentJudgeRatingResponse();
        response.setId(rating.getId());