Browse Source

管乐迷评测记录详情

zouxuan 1 year ago
parent
commit
153a0d4806

+ 0 - 6
mec-application/src/main/java/com/ym/mec/teacher/controller/TeacherSubjectController.java

@@ -46,10 +46,4 @@ public class TeacherSubjectController extends BaseController {
     public HttpResponseResult<List<Subject>> findSubSubjects(Integer tenantId){
         return succeed(subjectService.findSubSubjects(null));
     }
-
-    @ApiOperation(value = "获取指定名称的科目列表")
-    @GetMapping("/findByNames")
-    public HttpResponseResult<List<Subject>> findByNames() {
-        return succeed(subjectService.getDao().findByNames());
-    }
 }

+ 11 - 0
mec-application/src/main/java/com/ym/mec/web/controller/education/EduSubjectController.java

@@ -1,7 +1,9 @@
 package com.ym.mec.web.controller.education;
 
+import com.ym.mec.biz.dal.entity.Subject;
 import com.ym.mec.biz.service.SubjectService;
 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 org.springframework.beans.factory.annotation.Autowired;
@@ -9,6 +11,8 @@ 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;
+
 @RequestMapping("${app-config.url.web:}/eduSubject")
 @Api(tags = "教务端科目服务")
 @RestController
@@ -28,4 +32,11 @@ public class EduSubjectController extends BaseController {
     public Object get(String subjectIdList){
         return succeed(subjectService.findBySubjectByIdList(subjectIdList));
     }
+
+
+    @ApiOperation(value = "获取指定名称的科目列表")
+    @GetMapping("/findByNames")
+    public HttpResponseResult<List<Subject>> findByNames() {
+        return succeed(subjectService.getDao().findByNames());
+    }
 }