From 6074ba1caff734344ff4f0a2bcb646c54f13019b Mon Sep 17 00:00:00 2001 From: maLix Date: Tue, 20 Jun 2023 00:04:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E6=A1=88=E4=BE=8B=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main/resources/sql/jlw/handsOn.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/src/main/resources/sql/jlw/handsOn.md b/web/src/main/resources/sql/jlw/handsOn.md index 311b0402..6ee7f39e 100644 --- a/web/src/main/resources/sql/jlw/handsOn.md +++ b/web/src/main/resources/sql/jlw/handsOn.md @@ -72,7 +72,8 @@ queryByConditionMergeOpenCourseHandsOn t.course_info_id as system_course_info_id, (select course_info_name from course_info zc where zc.course_info_id = t.course_info_id and zc.course_info_status = 1 limit 1) as system_course_info_id_text, t.course_info_full_id, - t.data_type + t.data_type, + t.hands_on_status @} FROM ( @@ -87,7 +88,8 @@ queryByConditionMergeOpenCourseHandsOn c.`user_id`, a.course_info_id as system_course_info_id, a.course_info_full_id, - 'ADMIN_ADD' AS data_type + 'ADMIN_ADD' AS data_type, + c.hands_on_status FROM hands_on c LEFT JOIN course_info a ON c.course_child_node = a.course_info_id UNION ALL @@ -104,7 +106,8 @@ queryByConditionMergeOpenCourseHandsOn a.course_info_full_id,-- 判断关联课程是系统内置,还是院校添加的 CASE WHEN a.course_info_id IS NOT NULL THEN 'ADMIN_ADD' ELSE 'FACULTY_ADD' - END AS data_type + END AS data_type, + 1 as hands_on_status FROM teacher_open_course_hands_on c LEFT JOIN course_info a ON c.course_child_node = a.course_info_id