|
|
@@ -4,6 +4,9 @@ import com.zhongzheng.common.core.controller.BaseController;
|
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
import com.zhongzheng.framework.web.service.WxTokenService;
|
|
|
+import com.zhongzheng.modules.activity.bo.ActivityRecommendGoodsQueryBo;
|
|
|
+import com.zhongzheng.modules.activity.service.IActivityRecommendGoodsService;
|
|
|
+import com.zhongzheng.modules.activity.vo.ActivityRecommendGoodsVo;
|
|
|
import com.zhongzheng.modules.bank.bo.ExamQuestionQueryBo;
|
|
|
import com.zhongzheng.modules.bank.bo.QuestionChapterExamQueryBo;
|
|
|
import com.zhongzheng.modules.bank.bo.QuestionModuleChapterQueryBo;
|
|
|
@@ -14,14 +17,17 @@ import com.zhongzheng.modules.bank.vo.ExamQuestionVo;
|
|
|
import com.zhongzheng.modules.bank.vo.ExamVo;
|
|
|
import com.zhongzheng.modules.bank.vo.QuestionChapterVo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
|
|
|
+import com.zhongzheng.modules.course.bo.CourseSubjectQueryBo;
|
|
|
import com.zhongzheng.modules.course.service.ICourseChapterSectionService;
|
|
|
import com.zhongzheng.modules.course.service.ICourseMenuService;
|
|
|
import com.zhongzheng.modules.course.service.ICourseModuleChapterService;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseSubjectService;
|
|
|
import com.zhongzheng.modules.course.vo.*;
|
|
|
import com.zhongzheng.modules.goods.bo.GoodsAttachedQueryBo;
|
|
|
import com.zhongzheng.modules.goods.bo.GoodsCourseTeacherQueryBo;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsAttachedService;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsCourseTeacherService;
|
|
|
+import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsAttachedVo;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsCourseTeacherVo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -34,6 +40,8 @@ import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -56,6 +64,8 @@ public class CommonCourseController extends BaseController {
|
|
|
|
|
|
private final IGoodsCourseTeacherService iGoodsCourseTeacherService;
|
|
|
|
|
|
+ private final ICourseSubjectService iCourseSubjectService;
|
|
|
+
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -100,4 +110,14 @@ public class CommonCourseController extends BaseController {
|
|
|
return AjaxResult.success(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询科目列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询科目列表")
|
|
|
+ @GetMapping("/subjectList")
|
|
|
+ public AjaxResult<List<CourseSubjectVo>> getSubjectList(CourseSubjectQueryBo bo) {
|
|
|
+ bo.setStatus(new ArrayList<Integer>(Arrays.asList(1)));
|
|
|
+ List<CourseSubjectVo> list = iCourseSubjectService.queryList(bo);
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
}
|