@RequestParam补全

master
shijie 4 years ago
parent 7c1ee361e0
commit 9b3df36cdc
  1. 6
      src/main/java/com/yipin/liuwanr/controller/Project_ManagementController.java

@ -40,7 +40,7 @@ public class Project_ManagementController {
*/ */
@ApiOperation(value = "查询用户角色信息", notes = "查询用户角色信息") @ApiOperation(value = "查询用户角色信息", notes = "查询用户角色信息")
@GetMapping("/queryRole") @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(); Response resp = new Response();
HashMap<String, Object> ret = service.queryRole(userId); HashMap<String, Object> ret = service.queryRole(userId);
int status = (int) ret.get("retcode"); int status = (int) ret.get("retcode");
@ -140,7 +140,7 @@ public class Project_ManagementController {
*/ */
@ApiOperation(value = "获取点击编辑的对应信息", notes = "获取点击编辑的对应信息") @ApiOperation(value = "获取点击编辑的对应信息", notes = "获取点击编辑的对应信息")
@GetMapping("/getProjectId") @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(); Response resp = new Response();
HashMap<String, Object> ret = service.getProjectId(projectId); HashMap<String, Object> ret = service.getProjectId(projectId);
int status = (int) ret.get("retcode"); int status = (int) ret.get("retcode");
@ -222,7 +222,7 @@ public class Project_ManagementController {
*/ */
@ApiOperation(value = "平均分配分值", notes = "平均分配分值") @ApiOperation(value = "平均分配分值", notes = "平均分配分值")
@GetMapping("/avgValues") @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(); Response resp = new Response();
HashMap<String, Object> ret = service.avgValues(number); HashMap<String, Object> ret = service.avgValues(number);
int status = (int) ret.get("retcode"); int status = (int) ret.get("retcode");

Loading…
Cancel
Save