diff --git a/web/src/main/resources/sql/jlw/handsOn.md b/web/src/main/resources/sql/jlw/handsOn.md index 0001d292..2926c04f 100644 --- a/web/src/main/resources/sql/jlw/handsOn.md +++ b/web/src/main/resources/sql/jlw/handsOn.md @@ -153,8 +153,8 @@ queryByConditionMergeOpenCourseHandsOn @if(!isEmpty(handsOnFrom)){ and t.data_type = #handsOnFrom# @} - @if(!isEmpty(orgIdText) && orgIdText != null){ - @if(orgIdText = '超级管理员' || orgIdText = '管理员') { + @if(has(orgIdText) && !isEmpty(orgIdText) && orgIdText != null){ + @if(orgIdText == '超级管理员' || orgIdText == '管理员') { and za.id = 1 @} else { and za.`name` like #'%'+orgIdText+'%'#