diff --git a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/activity/room/WeekStarRestController.java b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/activity/room/WeekStarRestController.java index 8ae72b48..973576c6 100644 --- a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/activity/room/WeekStarRestController.java +++ b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/activity/room/WeekStarRestController.java @@ -1,5 +1,6 @@ package com.red.circle.other.adapter.app.activity.room; +import cn.hutool.core.util.StrUtil; import com.red.circle.common.business.core.enums.SysOriginPlatformEnum; import com.red.circle.common.business.dto.cmd.AppExtCommand; import com.red.circle.framework.dto.ResultResponse; @@ -125,7 +126,10 @@ public class WeekStarRestController extends BaseController { * @eo.request-type formdata */ @GetMapping("/my-rank") - public UserRankCO getMyRank(@Validated WeekStarRankingQueryCmd cmd) { + public UserRankCO getMyRank(@Validated WeekStarRankingQueryCmd cmd, @RequestParam(value = "userId", required = false) String userId) { + if (StrUtil.isNotBlank(userId)) { + cmd.setReqUserId(Long.parseLong(userId)); + } return weekStarService.getMyRank(cmd); }