diff --git a/src/main/java/com/yipin/liuwanr/controller/ProjectManagementController.java b/src/main/java/com/yipin/liuwanr/controller/ProjectManagementController.java index 1dc5638..0114511 100644 --- a/src/main/java/com/yipin/liuwanr/controller/ProjectManagementController.java +++ b/src/main/java/com/yipin/liuwanr/controller/ProjectManagementController.java @@ -524,4 +524,35 @@ public class ProjectManagementController { } return resp; } + + + /** + * 川大查询项目管理 + *

+ * + * @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 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; + } } diff --git a/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java b/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java index bb322a0..0e35535 100644 --- a/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java +++ b/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java @@ -63,16 +63,6 @@ public interface ProjectManagementMapper { " ORDER BY creationTime desc", ""}) List queryManagements(ProjectManagement management); - @Select({""}) - List queryUserManagements(ProjectManagement vo); // @Select({"