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
fde5f90e
authored
Sep 11, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复问题
parent
eaff939b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
app/Http/Controllers/Filter/AttachmentAuditFilter.php
app/Http/Transformers/AttachmentAuditTransformer.php
app/Http/Controllers/Filter/AttachmentAuditFilter.php
View file @
fde5f90e
...
...
@@ -43,6 +43,12 @@ class AttachmentAuditFilter
}
else
{
$query
->
whereRaw
(
"(create_uid in
$inUserIdSql
)"
);
}
}
else
{
$query
->
where
(
function
(
$selfQuery
)
use
(
$userId
,
$codeId
)
{
$selfQuery
->
where
(
'create_uid'
,
$userId
)
->
orWhere
(
'purchase_uid'
,
$codeId
)
->
orWhere
(
'channel_uid'
,
'like'
,
'%'
.
$codeId
.
'%'
);
});
}
}
// 默认只显示审核中的数据
...
...
app/Http/Transformers/AttachmentAuditTransformer.php
View file @
fde5f90e
...
...
@@ -36,9 +36,9 @@ class AttachmentAuditTransformer
$item
[
'supplier_code'
]
=
$item
[
'supplier'
][
'supplier_code'
];
// 获取采购员信息
$
yunxinChannelUid
=
$item
[
'supplier'
][
'yunxin_
channel_uid'
];
if
(
$
yunxinC
hannelUid
)
{
$item
[
'purchase_user_name'
]
=
$adminUserService
->
getAdminUserNameByCodeId
(
$yunxinChannelUid
);
$
channelUid
=
$item
[
'supplier'
][
'
channel_uid'
];
if
(
$
c
hannelUid
)
{
$item
[
'purchase_user_name'
]
=
(
new
SupplierTransformer
())
->
getChannelUserNames
(
$item
[
'supplier'
][
'channel_uid'
]
);
}
else
{
$item
[
'purchase_user_name'
]
=
''
;
}
...
...
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