|
@@ -5,12 +5,15 @@ import com.ym.mec.biz.dal.dto.StatDto;
|
|
|
import com.ym.mec.biz.dal.entity.Organization;
|
|
|
import com.ym.mec.biz.dal.page.StudentQueryInfo;
|
|
|
import com.ym.mec.biz.service.OrganizationService;
|
|
|
+import com.ym.mec.biz.service.StudentManageService;
|
|
|
import com.ym.mec.biz.service.StudentService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -33,6 +36,8 @@ public class EduStudentController extends BaseController {
|
|
|
private StudentService studentService;
|
|
|
@Autowired
|
|
|
private OrganizationService organizationService;
|
|
|
+ @Autowired
|
|
|
+ private StudentManageService studentManageService;
|
|
|
|
|
|
@ApiOperation(value = "云教练学员数据")
|
|
|
@GetMapping("/organStudentData")
|
|
@@ -40,6 +45,12 @@ public class EduStudentController extends BaseController {
|
|
|
return succeed(studentService.organStudentData(queryInfo));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "根据学生ID获取其所在的乐团")
|
|
|
+ @GetMapping("/findStudentMusicGroups")
|
|
|
+ public Object findStudentMusicGroups(@ApiParam(value = "学生编号", required = true) Integer userId){
|
|
|
+ return succeed(studentManageService.findStudentMusicGroupsByUserId(userId));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "分部云教练学员数据预览")
|
|
|
@GetMapping("/organStudentOverView")
|
|
|
public HttpResponseResult<List<EduOrganStudentDataDto>> organStudentOverView() throws Exception {
|