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
43b95860
authored
Jul 29, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
银行信息同步因为供应商名称一样所以要汇总
parent
f695cd3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
app/Http/Services/SyncSupplierService.php
app/Http/Services/SyncSupplierService.php
View file @
43b95860
...
@@ -83,10 +83,12 @@ class SyncSupplierService
...
@@ -83,10 +83,12 @@ class SyncSupplierService
if
(
!
empty
(
$supplier
[
'currency'
]))
{
if
(
!
empty
(
$supplier
[
'currency'
]))
{
$message
[
'currencyNumber'
]
=
array_get
(
config
(
'sync.SyncCurrencyType'
),
$supplier
[
'currency'
]);
$message
[
'currencyNumber'
]
=
array_get
(
config
(
'sync.SyncCurrencyType'
),
$supplier
[
'currency'
]);
}
}
$supplierIds
=
SupplierChannelModel
::
where
(
'supplier_name'
,
$supplier
[
'supplier_name'
])
->
where
(
'is_type'
,
0
)
->
where
(
'group_code'
,
'!='
,
''
)
->
pluck
(
'supplier_id'
)
->
toArray
();
//银行信息
//银行信息
$receipts
=
SupplierReceiptModel
::
where
(
'supplier_id'
,
$supplierId
)
->
get
()
->
toArray
();
$receipts
=
SupplierReceiptModel
::
where
In
(
'supplier_id'
,
$supplierIds
)
->
get
()
->
toArray
();
//->where('bank_name', '!=', '')->where('account_no', '!=', '')->get()->toArray();
//->where('bank_name', '!=', '')->where('account_no', '!=', '')->get()->toArray();
if
(
!
empty
(
$receipts
))
{
if
(
!
empty
(
$receipts
))
{
$message
[
'bankinfo'
]
=
[];
$message
[
'bankinfo'
]
=
[];
foreach
(
$receipts
as
$receipt
)
{
foreach
(
$receipts
as
$receipt
)
{
...
...
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