Commit c83402a1 by 杨树贤

修复数据

parent 8d6db552
Showing with 19 additions and 3 deletions
......@@ -13,17 +13,18 @@
use App\Model\RedisModel;
use App\Model\NationModel;
use App\Http\Services\CrmService;
use App\Http\Services\SkuService;
use App\Http\Services\DataService;
use App\Model\AttachmentAuditModel;
use App\Model\SupplierChannelModel;
use App\Model\SupplierContractModel;
use App\Http\Services\CompanyService;
use Illuminate\Support\Facades\Route;
use App\Http\Services\DepartmentService;
use App\Model\SupplierAttachmentsModel;
use App\Http\Services\DepartmentService;
use App\Http\Services\SupplierAccountService;
use App\Model\AttachmentAuditModel;
Route::group(['middleware' => ['web', 'menu']], function () {
Route::get('/', 'WebController@Entrance');
......@@ -95,9 +96,24 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route::match(['get', 'post'], '/test', function () {
$updateData = [
'波斯尼亚和黑塞哥维那' => 'BA',
'中非共和国' => 'CF',
'民主刚果' => 'CD',
'马其顿' => 'MK',
'几内亚(比绍)' => 'GW',
'密克罗尼西亚' => 'FM',
'俄罗斯' => 'RU',
'南苏丹' => 'SS',
'阿拉伯联合酋长国' => 'AE',
];
foreach ($updateData as $chineseName => $englishCode) {
NationModel::where('name_cn', $chineseName)->update(['international_code' => $englishCode]);
}
// DataService::initSupplierNationId();
// DataService::initSupplierReceiptNationId();
// SupplierAccountService::initYunxinAccountName();
DataService::syncSupplierToErp();
// DataService::syncSupplierToErp();
// DataService::repaireSkuUploadRuler();
});
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