Update htdocs/app/Services/AstmMessageService.php
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user