|
@@ -0,0 +1,42 @@
|
|
|
+package com.ym.mec.web.controller.school;
|
|
|
+
|
|
|
+import com.ym.mec.biz.dal.dto.BaseMapDto;
|
|
|
+import com.ym.mec.biz.dal.entity.ClassGroup;
|
|
|
+import com.ym.mec.biz.dal.school.dto.ClassesForDayDto;
|
|
|
+import com.ym.mec.biz.dal.school.dto.CourseStudentDto;
|
|
|
+import com.ym.mec.biz.dal.school.dto.DailySummaryOfClassesForTheCurrentSemesterDto;
|
|
|
+import com.ym.mec.biz.dal.school.dto.SummaryOfCurrentSemesterCoursesDto;
|
|
|
+import com.ym.mec.biz.service.ClassGroupService;
|
|
|
+import com.ym.mec.biz.service.CourseScheduleService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.snaker.engine.model.BaseModel;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("schoolClassGroup")
|
|
|
+@Api(tags = "学校端班级服务")
|
|
|
+public class SchoolClassGroupController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ClassGroupService classGroupService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取合作单位所有班级列表")
|
|
|
+ @GetMapping("/queryClassGroup")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "coopId", dataType = "Integer", required = true, value = "合作单位"),
|
|
|
+ })
|
|
|
+ public HttpResponseResult<List<BaseMapDto>> queryClassGroup(Integer coopId) {
|
|
|
+ return succeed(classGroupService.queryClassGroup(coopId));
|
|
|
+ }
|
|
|
+}
|