Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
YouJia
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b2d89766
authored
Oct 14, 2026
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据权限过滤:组织域(ALL 不限制 / DEPT 类按可见组织裁剪 / 不可见任何组织时恒空集)
1 parent
662a9ce5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
youjia-module-store/src/main/java/com/youjia/store/service/impl/StoreApprovalServiceImpl.java
youjia-module-store/src/main/java/com/youjia/store/service/impl/StoreApprovalServiceImpl.java
View file @
b2d8976
...
@@ -355,10 +355,16 @@ public class StoreApprovalServiceImpl implements StoreApprovalService {
...
@@ -355,10 +355,16 @@ public class StoreApprovalServiceImpl implements StoreApprovalService {
wrapper
.
in
(
StoreListing:
:
getListingId
,
listingIds
.
isEmpty
()
?
List
.
of
(-
1L
)
:
listingIds
);
wrapper
.
in
(
StoreListing:
:
getListingId
,
listingIds
.
isEmpty
()
?
List
.
of
(-
1L
)
:
listingIds
);
}
}
// 数据权限过滤:组织域(ALL 不限制 / DEPT 类按可见组织裁剪 / 不可见任何组织时恒空集);
// 该过滤同时作用于 pending / done / mine 三个页签(均经由本方法构建查询)
List
<
Long
>
visibleOrgIds
=
dataScopeHelper
.
resolveVisibleOrgIds
();
List
<
Long
>
visibleOrgIds
=
dataScopeHelper
.
resolveVisibleOrgIds
();
if
(
visibleOrgIds
!=
null
)
{
if
(
visibleOrgIds
!=
null
)
{
wrapper
.
in
(
StoreListing:
:
getOrgId
,
visibleOrgIds
.
isEmpty
()
?
List
.
of
(-
1L
)
:
visibleOrgIds
);
wrapper
.
in
(
StoreListing:
:
getOrgId
,
visibleOrgIds
.
isEmpty
()
?
List
.
of
(-
1L
)
:
visibleOrgIds
);
}
}
// 「仅本人」域叠加:只保留当前用户自己提交的记录(与门店列表接口口径一致)
if
(
dataScopeHelper
.
isSelfOnly
())
{
wrapper
.
eq
(
StoreListing:
:
getSubmitUserId
,
CurrentUserHolder
.
getUserId
());
}
return
wrapper
;
return
wrapper
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment