Commit 1d1157cf by 杨树贤

数据变更

parent e38ef8e0
......@@ -894,14 +894,8 @@ class DataService
]);
}
public static function initSupplierAccountName()
public static function updateGroupCode()
{
$supplierAccountList = SupplierAccountModel::where('account_name', '')->get()->toArray();
foreach ($supplierAccountList as $supplierAccount) {
$supplierAccount['account_name'] = SupplierAccountService::generateAccountName($supplierAccount['supplier_id']);
SupplierAccountModel::where('id', $supplierAccount['id'])->update([
'account_name' => $supplierAccount['account_name'],
]);
}
SupplierChannelModel::where('supplier_code','L0005670')->update(['group_code' => 'G003815']);
}
}
......@@ -96,7 +96,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route::match(['get', 'post'], '/test', function () {
SupplierAccountService::autoCreateYunxinAccount(18785);
DataService::updateGroupCode();
// DataService::initSupplierReceiptNationId();
// SupplierAccountService::initYunxinAccountName();
// DataService::syncSupplierToErp();
......
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