Commit 6fe89612 by mushishixian

数据修改

parent 7d48d62f
......@@ -245,4 +245,13 @@ class DataService
}
}
}
//修改错误状态
public function modifyStatus()
{
$model = new SupplierChannelModel();
$model->where('status', -1)->update([
'status' => 1
]);
}
}
\ No newline at end of file
......@@ -40,53 +40,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
Route::match(['get', 'post'], '/api/supplier_account/{key}', 'SupplierAccountApiController@Entrance');
});
Route::match(['get', 'post'], '/test', function () {
$a = [
"contact_id" => 1717,
"supplier_id" => 12253,
"supplier_consignee" => "",
"supplier_telephone" => "",
"supplier_fax" => "",
"supplier_qq" => "",
"supplier_mobile" => "",
"supplier_email" => "",
"supplier_position" => "",
"can_check_uids" => "10105",
"add_time" => 0,
"update_time" => 0,
"admin_id" => 0,
];
$b = [
"contact_id" => 1717,
"supplier_id" => 12253,
"supplier_consignee" => "延寿观呼吸",
"supplier_telephone" => "1221",
"supplier_fax" => "",
"supplier_qq" => "",
"supplier_mobile" => "18825159814",
"supplier_email" => "123@qq.com",
"supplier_position" => "测试员",
"can_check_uids" => "10105",
"add_time" => 0,
"update_time" => 1623998098,
"admin_id" => 0,
];
$diff = array_diff($b, $a);
$diff2 = array_diff($a, $b);
dd($diff,$diff2);
// set_time_limit(0);
// sleep(30);
// echo 123;
$model = new \App\Model\RegionModel();
$r = $model->limit(10)->get();
dd($r);
$service = new \App\Http\Services\DataService();
// $service->checkSupplierChannelUser();
// $service->removeEmptyContactChannelUser();
// $service->repairChannelUser();
$service->exportSuppliers();
// $service->exportSupplierContact();
// $service->export();
// $service->repairData(10);
// $service->completeContact(10);
$service->modifyStatus();
});
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