Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1a010be6
authored
Jun 19, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
筛选问题
parent
805546a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
app/Http/Controllers/Filter/SkuListFilter.php
app/Http/Controllers/Filter/SkuListFilter.php
View file @
1a010be6
...
...
@@ -30,12 +30,9 @@ class SkuListFilter
$map
[
'create_time/range'
]
=
$startTime
.
','
.
$endTime
;
unset
(
$map
[
'create_time'
]);
}
if
(
!
checkPerm
(
'ViewAllSku'
))
{
$map
[
'encoded/condition'
]
=
request
()
->
user
->
codeId
;
}
$userId
=
request
()
->
user
->
userId
;
if
(
checkPerm
(
'ViewSubordinateSku'
))
{
if
(
checkPerm
(
'ViewAllSku'
))
{
}
else
if
(
checkPerm
(
'ViewSubordinateSku'
))
{
//查看下级
$departmentService
=
new
DepartmentService
();
//下属用户id(结果包括自己的id)
...
...
@@ -44,6 +41,8 @@ class SkuListFilter
$subordinateCodeIds
=
$adminUserService
->
getCodeIdsByUserIds
(
$subordinateUserIds
);
$subordinateCodeIds
=
$subordinateCodeIds
->
toArray
();
$map
[
'encoded/eqs'
]
=
implode
(
','
,
$subordinateCodeIds
);
}
else
{
$map
[
'encoded/condition'
]
=
request
()
->
user
->
codeId
;
}
if
((
!
empty
(
$map
[
'update_time'
])))
{
$times
=
explode
(
'~'
,
$map
[
'update_time'
]);
...
...
@@ -53,6 +52,7 @@ class SkuListFilter
unset
(
$map
[
'update_time'
]);
}
if
(
!
empty
(
$map
[
'source_type'
]))
{
switch
(
$map
[
'source_type'
])
{
case
'all'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment