|
@@ -3,7 +3,6 @@ package com.ym.mec.teacher.controller;
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.dao.ClassGroupStudentMapperDao;
|
|
|
-import com.ym.mec.biz.dal.dao.CourseScheduleStudentPaymentDao;
|
|
|
import com.ym.mec.biz.dal.dao.StudentDao;
|
|
|
import com.ym.mec.biz.dal.dao.StudentRegistrationDao;
|
|
|
import com.ym.mec.biz.dal.dto.BasicUserDto;
|
|
@@ -23,7 +22,6 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -130,12 +128,12 @@ public class ExtracurricularExercisesController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "获取待布置学员列表")
|
|
|
@GetMapping("/getDontServeStudents")
|
|
|
- public HttpResponseResult getDontServeStudents(String search, String musicGroupId, Long classGroupId, Integer subjectId,Integer hasMember){
|
|
|
+ public HttpResponseResult getDontServeStudents(String search, String musicGroupId, Long classGroupId, Integer subjectId,Integer hasMember,String studentIds){
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(Objects.isNull(sysUser)){
|
|
|
return failed(HttpStatus.FORBIDDEN,"请登录");
|
|
|
}
|
|
|
- return succeed(extracurricularExercisesService.getDontServeStudents(sysUser.getId(), search, musicGroupId, classGroupId, subjectId,hasMember));
|
|
|
+ return succeed(extracurricularExercisesService.getDontServeStudents(sysUser.getId(), search, musicGroupId, classGroupId, subjectId,hasMember,studentIds));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取待布置学员乐团列表")
|
|
@@ -145,7 +143,7 @@ public class ExtracurricularExercisesController extends BaseController {
|
|
|
if(Objects.isNull(sysUser)){
|
|
|
return failed(HttpStatus.FORBIDDEN,"请登录");
|
|
|
}
|
|
|
- List<BasicUserDto> dontServeStudents = extracurricularExercisesService.getDontServeStudents(sysUser.getId(), search, null, null,null,null);
|
|
|
+ List<BasicUserDto> dontServeStudents = extracurricularExercisesService.getDontServeStudents(sysUser.getId(), search, null, null,null,null,null);
|
|
|
if(CollectionUtils.isEmpty(dontServeStudents)){
|
|
|
return succeed(Collections.emptyList());
|
|
|
}
|
|
@@ -162,7 +160,7 @@ public class ExtracurricularExercisesController extends BaseController {
|
|
|
return failed(HttpStatus.FORBIDDEN,"请登录");
|
|
|
}
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
- List<BasicUserDto> dontServeStudents = extracurricularExercisesService.getDontServeStudents(sysUser.getId(), null, null, null, null,null);
|
|
|
+ List<BasicUserDto> dontServeStudents = extracurricularExercisesService.getDontServeStudents(sysUser.getId(), null, null, null, null,null,null);
|
|
|
if(CollectionUtils.isEmpty(dontServeStudents)){
|
|
|
result.put("musicGroups", Collections.emptyList());
|
|
|
result.put("classGroups", Collections.emptyList());
|