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
75fa973a
authored
Apr 07, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复在职问题
parent
d016b2dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
app/Http/Transformers/SupplierTransformer.php
app/Http/Transformers/SupplierTransformer.php
View file @
75fa973a
...
...
@@ -131,22 +131,32 @@ class SupplierTransformer
//然后判断哪些是离职,哪些是在职的
foreach
(
$jdChannelUserNameList
as
$username
)
{
if
(
!
in_array
(
$username
,
$onJobUserNameList
))
{
$
r
esignChannelUserNameList
[]
=
$username
;
$
jdR
esignChannelUserNameList
[]
=
$username
;
}
else
{
$
o
nJobChannelUserNameList
[]
=
$username
;
$
jdO
nJobChannelUserNameList
[]
=
$username
;
}
}
}
if
(
!
empty
(
$supplier
[
'channel_uid'
]))
{
//然后判断哪些是离职,哪些是在职的
foreach
(
$channelUserNameList
as
$username
)
{
if
(
!
in_array
(
$username
,
$onJobUserNameList
))
{
$resignChannelUserNameList
[]
=
$username
;
}
else
{
$onJobChannelUserNameList
[]
=
$username
;
}
}
}
$supplier
[
'resign_channel_username'
]
=
$resignChannelUserNameList
?
implode
(
','
,
$resignChannelUserNameList
)
:
''
;
$supplier
[
'on_job_channel_username'
]
=
$onJobChannelUserNameList
?
implode
(
','
,
$onJobChannelUserNameList
)
:
''
;
$supplier
[
'jd_resign_channel_username'
]
=
$jdResignChannelUserNameList
?
implode
(
','
,
$
r
esignChannelUserNameList
)
:
''
;
$
jdR
esignChannelUserNameList
)
:
''
;
$supplier
[
'jd_on_job_channel_username'
]
=
$jdOnJobChannelUserNameList
?
implode
(
','
,
$
o
nJobChannelUserNameList
)
:
''
;
$
jdO
nJobChannelUserNameList
)
:
''
;
}
unset
(
$supplier
);
return
$suppliers
;
...
...
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