From c65afc98363b596c6fc3f0ccaafdda146c4b377f Mon Sep 17 00:00:00 2001 From: Mlxa0324 Date: Tue, 27 Jun 2023 10:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=88=E4=BE=8B=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main/resources/sql/jlw/handsOn.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/src/main/resources/sql/jlw/handsOn.md b/web/src/main/resources/sql/jlw/handsOn.md index abe80d00..3c2a83cf 100644 --- a/web/src/main/resources/sql/jlw/handsOn.md +++ b/web/src/main/resources/sql/jlw/handsOn.md @@ -92,7 +92,13 @@ queryByConditionMergeOpenCourseHandsOn c.hands_on_status FROM hands_on c - LEFT JOIN course_info a ON c.course_child_node = a.course_info_id UNION ALL + LEFT JOIN course_info a ON c.course_child_node = a.course_info_id + where 1 = 1 + @if(!isEmpty(courseInfoFullIdStr)){ + and a.course_info_full_id regexp #courseInfoFullIdStr# + @} + + UNION ALL SELECT c.teacher_open_course_id, c.`hands_on_id`, @@ -160,10 +166,6 @@ queryByConditionMergeOpenCourseHandsOn and za.`name` like #'%'+orgIdText+'%'# @} @} - @if(!isEmpty(courseInfoFullIdStr)){ - and t.course_info_full_id regexp #courseInfoFullIdStr# - @// 未授权任何应用的话,这里直接返回空数据 - @}