数据隔离

beetlsql3-dev
Mlxa0324 2 years ago
parent a5c6c2463c
commit fcc6f18419

@ -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+"%"#

@ -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#

Loading…
Cancel
Save