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
111b4b5f
authored
May 29, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
同步供应商的的采购员换成金蝶的编码
parent
df20c204
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/Http/Services/SyncSupplierService.php
app/Http/Services/SyncSupplierService.php
View file @
111b4b5f
...
...
@@ -49,7 +49,7 @@ class SyncSupplierService
}
$contactModel
=
new
SupplierContactModel
();
$contact
=
$contactModel
->
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
->
orderBy
(
'contact_id'
,
'asc'
)
->
first
();
$purchases
=
$this
->
get
Purchases
(
$supplier
[
'channel_uid'
]);
$purchases
=
$this
->
get
UserCodeSn
(
$supplier
[
'channel_uid'
]);
$message
=
[
'name'
=>
$supplier
[
'supplier_name'
],
'PTID'
=>
$supplier
[
'supplier_code'
],
...
...
@@ -92,14 +92,14 @@ class SyncSupplierService
}
//获取采购人员列表
private
function
get
Purchases
(
$purchaseUid
)
private
function
get
UserCodeSn
(
$purchaseUid
)
{
$purchaseUid
=
explode
(
','
,
$purchaseUid
);
if
(
empty
(
$purchaseUid
))
{
return
[];
}
$adminIds
=
DB
::
connection
()
->
table
(
'lie_intracode'
)
->
whereIn
(
'code_id'
,
$purchaseUid
)
->
pluck
(
'admin_id'
);
return
DB
::
connection
()
->
table
(
'user_info'
)
->
whereIn
(
'userId'
,
$adminIds
)
->
pluck
(
'
name
'
);
return
DB
::
connection
()
->
table
(
'user_info'
)
->
whereIn
(
'userId'
,
$adminIds
)
->
pluck
(
'
code_sn
'
);
}
/**
...
...
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