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");