From 9b3df36cdcc743d98704a828acc4afdf5fe15aa6 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Tue, 28 Jul 2020 15:21:27 +0800 Subject: [PATCH] =?UTF-8?q?@RequestParam=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../liuwanr/controller/Project_ManagementController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/controller/Project_ManagementController.java b/src/main/java/com/yipin/liuwanr/controller/Project_ManagementController.java index cf7c0a3..6aa110b 100644 --- a/src/main/java/com/yipin/liuwanr/controller/Project_ManagementController.java +++ b/src/main/java/com/yipin/liuwanr/controller/Project_ManagementController.java @@ -40,7 +40,7 @@ public class Project_ManagementController { */ @ApiOperation(value = "查询用户角色信息", notes = "查询用户角色信息") @GetMapping("/queryRole") - Response queryRole(@ApiParam(name = "userId", value = "用户id", required = true) Integer userId) { + Response queryRole(@ApiParam(name = "userId", value = "用户id", required = true) @RequestParam Integer userId) { Response resp = new Response(); HashMap ret = service.queryRole(userId); int status = (int) ret.get("retcode"); @@ -140,7 +140,7 @@ public class Project_ManagementController { */ @ApiOperation(value = "获取点击编辑的对应信息", notes = "获取点击编辑的对应信息") @GetMapping("/getProjectId") - Response getProjectId(@ApiParam(name = "projectId", value = "项目主键ID", required = true) Integer projectId) { + Response getProjectId(@ApiParam(name = "projectId", value = "项目主键ID", required = true) @RequestParam Integer projectId) { Response resp = new Response(); HashMap ret = service.getProjectId(projectId); int status = (int) ret.get("retcode"); @@ -222,7 +222,7 @@ public class Project_ManagementController { */ @ApiOperation(value = "平均分配分值", notes = "平均分配分值") @GetMapping("/avgValues") - Response avgValues(@ApiParam(name = "number", value = "判分点数量", required = true) Integer number) { + Response avgValues(@ApiParam(name = "number", value = "判分点数量", required = true) @RequestParam Integer number) { Response resp = new Response(); HashMap ret = service.avgValues(number); int status = (int) ret.get("retcode");