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
6142d1f5
authored
Jun 26, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复
parent
11d697b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
app/Http/Services/DataService.php
app/Http/Services/SupplierAddressService.php
app/Http/Services/DataService.php
View file @
6142d1f5
...
@@ -600,13 +600,20 @@ class DataService
...
@@ -600,13 +600,20 @@ class DataService
public
static
function
checkSupplierBandAccount
()
public
static
function
checkSupplierBandAccount
()
{
{
ini_set
(
'memory_limit'
,
-
1
);
ini_set
(
'memory_limit'
,
-
1
);
$accounts
=
SupplierReceiptModel
::
select
([
'
account_no'
,
'supplier_id'
,
'bank_adderss'
])
->
get
()
->
toArray
();
$accounts
=
SupplierReceiptModel
::
select
([
'
receipt_id'
,
'account_no'
,
'supplier_id'
,
'bank_adderss'
])
->
get
()
->
toArray
();
foreach
(
$accounts
as
$account
)
{
foreach
(
$accounts
as
$account
)
{
if
(
!
SupplierReceiptService
::
checkAccountNo
(
$account
[
'account_no'
]))
{
if
(
!
SupplierReceiptService
::
checkAccountNo
(
$account
[
'account_no'
]))
{
dump
(
$account
[
'account_no'
]);
dump
(
$account
[
'account_no'
]);
dump
(
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
);
$accountNo
=
SupplierReceiptService
::
transferAccountNo
(
$account
[
'account_no'
]);
$accountNo
=
SupplierReceiptService
::
transferAccountNo
(
$account
[
'account_no'
]);
dump
(
'-----------------------------------'
);
if
(
$accountNo
!=
$account
[
'account_no'
])
{
dump
(
$accountNo
);
dump
(
'-----------------------------------'
);
dump
(
$accountNo
);
//SupplierReceiptModel::where('receipt_id', $account['receipt_id'])->update([
// 'account_no' => $accountNo,
//]);
}
}
}
}
}
}
}
...
...
app/Http/Services/SupplierAddressService.php
View file @
6142d1f5
...
@@ -151,13 +151,13 @@ class SupplierAddressService
...
@@ -151,13 +151,13 @@ class SupplierAddressService
ini_set
(
'memory_limit'
,
-
1
);
ini_set
(
'memory_limit'
,
-
1
);
//先找出原始地址数据,然后比对
//先找出原始地址数据,然后比对
$supplierList
=
SupplierChannelModel
::
where
(
'is_type'
,
0
)
->
select
([
$supplierList
=
SupplierChannelModel
::
where
(
'is_type'
,
0
)
->
select
([
'supplier_id'
,
'supplier_id'
,
'supplier_code'
,
'supplier_code'
,
'supplier_name'
,
'supplier_name'
,
'supplier_address'
,
'supplier_address'
,
'create_name'
,
'create_name'
,
'create_uid'
,
'create_uid'
,
])
->
get
()
->
toArray
();
])
->
get
()
->
toArray
();
foreach
(
$supplierList
as
$supplier
)
{
foreach
(
$supplierList
as
$supplier
)
{
$supplierId
=
$supplier
[
'supplier_id'
];
$supplierId
=
$supplier
[
'supplier_id'
];
//收发货地址
//收发货地址
...
@@ -220,10 +220,11 @@ class SupplierAddressService
...
@@ -220,10 +220,11 @@ class SupplierAddressService
'create_name'
=>
$supplier
[
'create_name'
],
'create_name'
=>
$supplier
[
'create_name'
],
'address_data'
=>
$changedAddress
,
'address_data'
=>
$changedAddress
,
];
];
d
d
(
1232
);
d
ump
(
$params
);
//改成队列投放
//改成队列投放
(
new
QueueDeliveryService
())
->
push
(
QueueDeliveryService
::
PUSH_TYPE_SYNC_HTTP
,
'/sync/Address/updateAddress'
,
(
new
QueueDeliveryService
())
->
push
(
QueueDeliveryService
::
PUSH_TYPE_SYNC_HTTP
,
'/sync/Address/updateAddress'
,
$params
);
$params
);
dd
(
1232
);
}
}
}
}
...
...
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