Update htdocs/app/Services/AstmMessageService.php

This commit is contained in:
servdal
2025-09-04 12:22:55 +07:00
parent f0b5e64d16
commit 9c78f7c088
4 changed files with 32 additions and 45 deletions
@@ -9,6 +9,7 @@ use Illuminate\Support\Facades\DB;
use Exception;
use App\DataListiner;
use App\Periksa;
// Proses untuk Growth and Detection Result
function processGrowthDetectionResult($rawData){
@@ -227,6 +228,9 @@ class AstmMessageService
// Simpan ke database
if ($noregister){
Periksa::where('nofoto', $accession_number)->update([
'status' => 'Data Vitek di Terima',
]);
Log::info("Data berhasil disimpan:", $resultSample->toArray());
$resultSample->save();
}
@@ -530,6 +534,9 @@ class AstmMessageService
DataListiner::where('urut', $data->urut)->update([
'processed' => 1
]);
Periksa::where('nofoto', $data->no_id)->update([
'status' => 'Data BD di Terima',
]);
Log::info("Data ASTM BD ", $resultSample->toArray());
} else {
@@ -575,6 +582,9 @@ class AstmMessageService
DB::table('lis_phoenix')->where('id', $data->id)->update([
'processed' => 1
]);
Periksa::where('nofoto', $data->no_id)->update([
'status' => 'Data BD di Terima',
]);
Log::info("Data ASTM BD ", $resultSample->toArray());
} else {