Commit 6142d1f5 by 杨树贤

修复

parent 11d697b2
......@@ -600,13 +600,20 @@ class DataService
public static function checkSupplierBandAccount()
{
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) {
if (!SupplierReceiptService::checkAccountNo($account['account_no'])) {
dump($account['account_no']);
dump('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
$accountNo = SupplierReceiptService::transferAccountNo($account['account_no']);
dump('-----------------------------------');
dump($accountNo);
if ($accountNo != $account['account_no']) {
dump('-----------------------------------');
dump($accountNo);
//SupplierReceiptModel::where('receipt_id', $account['receipt_id'])->update([
// 'account_no' => $accountNo,
//]);
}
}
}
}
......
......@@ -151,13 +151,13 @@ class SupplierAddressService
ini_set('memory_limit', -1);
//先找出原始地址数据,然后比对
$supplierList = SupplierChannelModel::where('is_type', 0)->select([
'supplier_id',
'supplier_code',
'supplier_name',
'supplier_address',
'create_name',
'create_uid',
])->get()->toArray();
'supplier_id',
'supplier_code',
'supplier_name',
'supplier_address',
'create_name',
'create_uid',
])->get()->toArray();
foreach ($supplierList as $supplier) {
$supplierId = $supplier['supplier_id'];
//收发货地址
......@@ -220,10 +220,11 @@ class SupplierAddressService
'create_name' => $supplier['create_name'],
'address_data' => $changedAddress,
];
dd(1232);
dump($params);
//改成队列投放
(new QueueDeliveryService())->push(QueueDeliveryService::PUSH_TYPE_SYNC_HTTP, '/sync/Address/updateAddress',
$params);
dd(1232);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment