考证辅导

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

@ -83,7 +83,7 @@ public class CourseInfoController{
*/ */
@PostMapping(API + "/examCourseQuestion.do") @PostMapping(API + "/examCourseQuestion.do")
@ResponseBody @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())); return JsonResult.success(courseInfoService.examCourseQuestionDO(query.getPageQuery()));
} }

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

Loading…
Cancel
Save