|
|
@ -524,4 +524,35 @@ public class ProjectManagementController { |
|
|
|
} |
|
|
|
} |
|
|
|
return resp; |
|
|
|
return resp; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 川大查询项目管理 |
|
|
|
|
|
|
|
* <p> |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param projectPermissions:权限 |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@ApiOperation(value = "川大查询项目管理列表", notes = "川大查询项目管理列表") |
|
|
|
|
|
|
|
@GetMapping("/getManagements") |
|
|
|
|
|
|
|
Response getManagements( |
|
|
|
|
|
|
|
@ApiParam(name = "projectPermissions", value = "项目权限(0、练习 1、考核 2、竞赛)", required = true) @RequestParam(required = true) Integer projectPermissions){ |
|
|
|
|
|
|
|
Response resp = new Response(); |
|
|
|
|
|
|
|
ProjectManagement vo = new ProjectManagement(); |
|
|
|
|
|
|
|
if (null == projectPermissions) { |
|
|
|
|
|
|
|
resp.setStatus(300); |
|
|
|
|
|
|
|
resp.setErrmessage("项目权限不能为空!"); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
HashMap<String, Object> ret = service.getManagements(projectPermissions); |
|
|
|
|
|
|
|
int status = (int) ret.get("retcode"); |
|
|
|
|
|
|
|
if (status == 200) { |
|
|
|
|
|
|
|
resp.setStatus(status); |
|
|
|
|
|
|
|
resp.setMessage(ret.get("retvalue")); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
resp.setStatus(status); |
|
|
|
|
|
|
|
resp.setErrmessage(ret.get("retvalue").toString()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return resp; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|