diff --git a/src/main/java/com/mobile_education_platform/controller/AddressListGroupController.java b/src/main/java/com/mobile_education_platform/controller/AddressListGroupController.java index bc5f2df064d24f81f04e2166e4dd114647a9cc89..800e565737ca8aea5c5d354fcd06b0fc15cfb568 100644 --- a/src/main/java/com/mobile_education_platform/controller/AddressListGroupController.java +++ b/src/main/java/com/mobile_education_platform/controller/AddressListGroupController.java @@ -114,7 +114,7 @@ public class AddressListGroupController { * @date: 2021/10/27 8:30 */ @GetMapping ("/{classId}") - @ApiOperation(value="根据班级id删除标签页分组") + @ApiOperation(value="根据班级id查詢标签页分组") @ApiImplicitParam(name = "classId",value = "班級id") public R selectByClassId(@PathVariable String classId){ if( classId == null){ @@ -139,19 +139,19 @@ public class AddressListGroupController { * @date: 2021/10/27 8:30 */ @GetMapping ("/{role}/{groupId}/") - @ApiOperation(value="根据标签页id删除标签页分组") + @ApiOperation(value="根据标签页id查詢标签页分组") @ApiImplicitParams({ @ApiImplicitParam(name = "role",value = "身份(教师1,学生2)"), - @ApiImplicitParam(name = "groupId",value = "id")}) - public R selectByGroupId(@PathVariable String role, @PathVariable String groupId){ - if( role == null ||groupId == null){ + @ApiImplicitParam(name = "classId",value = "班级id")}) + public R selectByGroupId(@PathVariable String role, @PathVariable String classId){ + /*if( role == null ||groupId == null){ throw new ParamException("参数为空"); } AddressListGroup addressListGroup = addressListGroupService.selectClassIdByID(groupId); if (addressListGroup==null){ return R.error(500,"查询失败"); } - String classId = addressListGroup.getClassId(); + String classId = addressListGroup.getClassId();*/ Map map =new HashMap(); // 获取学生对象合集 List studentList = addressListGroupService.selectStudentGroup(classId);