考证辅导

beetlsql3-dev
yangdj 2 years ago
parent d8bd58ca14
commit 455f541aff

@ -83,7 +83,7 @@ public class CourseInfoController{
*/
@PostMapping(API + "/examCourseQuestion.do")
@ResponseBody
public JsonResult examCourseQuestion(CourseInfoQuery query, @SCoreUser CoreUser coreUser) {
public JsonResult<PageQuery> examCourseQuestion(CourseInfoQuery query, @SCoreUser CoreUser coreUser) {
return JsonResult.success(courseInfoService.examCourseQuestionDO(query.getPageQuery()));
}

@ -708,11 +708,13 @@ examCourseQuestionDO
* 只获取考证类的课程,如果配置试卷题目的话,就查询出来。
SELECT
@pageTag(){
t.*,
@// 关联的题目总数量
( SELECT count( 1 ) FROM general_resources_question_snapshot tb
WHERE tb.business_course_info_id = t.course_info_id
AND tb.general_question_setting_id = ta.general_question_setting_id AND tb.question_status = 1) AS question_count
@// 关联的题目总数量
( SELECT count( 1 ) FROM general_resources_question_snapshot tb
WHERE tb.business_course_info_id = t.course_info_id
AND tb.general_question_setting_id = ta.general_question_setting_id AND tb.question_status = 1) AS question_count
@}
FROM
course_info t
LEFT JOIN course_label tb on tb.course_label_id = t.course_label_id
@ -741,10 +743,10 @@ examCourseQuestionDO
and t.course_label_id =#courseLabelId#
@}
@if(!isEmpty(courseLabelType)){
and a.course_label_type like #'%'+courseLabelType+'%'#
and tb.course_label_type like #'%'+courseLabelType+'%'#
@}
@if(!isEmpty(courseLabelTypes)){
and find_in_set(a.course_label_type,#courseLabelTypes#)
and find_in_set(tb.course_label_type,#courseLabelTypes#)
@}
@if(!isEmpty(courseInfoBasicsCount)){
and t.course_info_basics_count =#courseInfoBasicsCount#

Loading…
Cancel
Save