12 lines
1.1 KiB
PHP
12 lines
1.1 KiB
PHP
<?php
|
|
require __DIR__.'/boot-QA.php';
|
|
use Illuminate\Support\Facades\DB;
|
|
DB::beginTransaction();DB::statement('SET TRANSACTION READ ONLY');
|
|
$record=['target'=>$target,'zones'=>DB::table('investment_zones')->where('category','industrial_park')->orderBy('code')->get(['id','code','publication_status','version_no','primary_territory_id']),
|
|
'economic_migration'=>DB::table('migrations')->where('migration','2026_10_16_120000_extend_economic_reference_hierarchy')->count(),
|
|
'economic_15'=>app(App\Services\EconomicReferenceCatalog::class)->publicationState(),
|
|
'pair'=>DB::table('portal_superuser_pair')->first(['first_user_id','second_user_id']),
|
|
'cases'=>DB::table('desk_cases')->where('user_id',21)->whereNull('closed_at')->whereNotNull('journey_id')->get(['id','title','user_id','version']),
|
|
'support'=>DB::table('documents')->where('id','025cce5b-73c1-43a3-b969-dc6e592bc28d')->first(['id','file_name','status','malware_scan_status','sha256'])];
|
|
DB::rollBack();file_put_contents(__DIR__.'/INSPECAO-QA.json',json_encode($record,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE));echo json_encode($record,JSON_UNESCAPED_UNICODE);
|