diff --git a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/activity/room/WeekKingQueenController.java b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/activity/room/WeekKingQueenController.java index 7d5800be..ef62e9c2 100644 --- a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/activity/room/WeekKingQueenController.java +++ b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/activity/room/WeekKingQueenController.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.dto.cmd.AppExtCommand; import com.red.circle.framework.dto.PageResult; import com.red.circle.framework.web.controller.BaseController; @@ -27,6 +28,7 @@ import org.springframework.data.domain.Page; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; /** @@ -129,7 +131,10 @@ public class WeekKingQueenController extends BaseController { * @eo.request-type formdata */ @GetMapping("/user-contribute") - public UserCharmWealthContributeCO getUserContribute(AppExtCommand cmd) { + public UserCharmWealthContributeCO getUserContribute(AppExtCommand cmd, @RequestParam(value = "userId", required = false) String userId) { + if (StrUtil.isNotBlank(userId)) { + cmd.setReqUserId(Long.parseLong(userId)); + } return weekKingQueenService.getUserContribute(cmd); }