From a8d9eb76e58f02b7528645b225cab505931050f7 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 22 Sep 2025 14:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E7=8E=8B=E7=8E=8B=E5=90=8E=20?= =?UTF-8?q?=E6=88=91=E7=9A=84=E8=B4=A1=E7=8C=AE=E6=8E=A5=E5=8F=A3=E6=96=B0?= =?UTF-8?q?=E5=A2=9EuserId=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adapter/app/activity/room/WeekKingQueenController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); }