diff --git a/web/src/main/resources/sql/jlw/resourcesInfo.md b/web/src/main/resources/sql/jlw/resourcesInfo.md index e2218972..542a4d7a 100644 --- a/web/src/main/resources/sql/jlw/resourcesInfo.md +++ b/web/src/main/resources/sql/jlw/resourcesInfo.md @@ -37,7 +37,11 @@ queryByCondition and t.org_id =#orgId# @} @if(!isEmpty(orgIdPlural)){ - and find_in_set(t.org_id, #orgIdPlural#) + and (find_in_set(t.org_id, #orgIdPlural#) + @if(contain("null", orgIdPlural)){ + or t.org_id is null + @} + ) @} @if(!isEmpty(courseInfoFullId)){ and a.course_info_full_id like #courseInfoFullId+"%"# diff --git a/web/src/main/resources/sql/jlw/resourcesQuestion.md b/web/src/main/resources/sql/jlw/resourcesQuestion.md index a2c5dfb7..162d07be 100644 --- a/web/src/main/resources/sql/jlw/resourcesQuestion.md +++ b/web/src/main/resources/sql/jlw/resourcesQuestion.md @@ -79,7 +79,11 @@ queryByCondition and t.org_id =#orgId# @} @if(!isEmpty(orgIdPlural)){ - and find_in_set(t.org_id, #orgIdPlural#) + and (find_in_set(t.org_id, #orgIdPlural#) + @if(contain("null", orgIdPlural)){ + or t.org_id is null + @} + ) @} @if(isEmpty(seeSelf) && !isEmpty(userId)){ and t.user_id =#userId#