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
f9ae599e
authored
Mar 28, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复同步问题
parent
5c4a79ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
app/Http/Services/SupplierAuditService.php
app/Http/Services/SyncSupplierService.php
app/Http/Services/SupplierAuditService.php
View file @
f9ae599e
...
...
@@ -76,7 +76,7 @@ class SupplierAuditService
}
$needReview
=
SupplierChannelModel
::
where
(
'supplier_id'
,
$supplierId
)
->
value
(
'need_review'
);
//复审通过状态的供应商才会同步到金蝶
if
(
$
needReview
==
0
)
{
if
(
$
status
==
SupplierChannelModel
::
STATUS_PASSED
)
{
//发送队列消息同步到金蝶
$service
=
new
SyncSupplierService
();
$service
->
syncSupplierToErp
(
$supplierId
);
...
...
app/Http/Services/SyncSupplierService.php
View file @
f9ae599e
...
...
@@ -167,6 +167,7 @@ class SyncSupplierService
//同步供应商信息到一体化中心
public
function
syncSupplierToUnited
(
$supplierId
)
{
Log
::
error
(
'同步供应商给一体化 : '
.
$supplierId
);
$supplier
=
SupplierChannelModel
::
where
(
'supplier_id'
,
$supplierId
)
->
first
()
->
toArray
();
$fileUrl
=
SupplierAttachmentsModel
::
where
(
'supplier_id'
,
$supplierId
)
->
where
(
'field_name'
,
'registration_certificate'
)
...
...
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