Commit 1ece4244 authored by FARDA ALAN MA'RUF's avatar FARDA ALAN MA'RUF

update import excel guru

parent de15cf09
......@@ -32,16 +32,30 @@ class ImportDapodikGuru implements ToCollection, WithHeadingRow
{
foreach ($rows as $row) {
$row['jenis'] = 'importGuruSplit';
$row['idUser'] = $this->data['idUser'];
$row['idPSekolah'] = $this->data['idPSekolah'];
$row['idPPeriode'] = $this->data['idPPeriode'];
if (!empty($row['nip'])) {
$row['jenis'] = 'importGuruSplit';
$row['idUser'] = $this->data['idUser'];
$row['idPSekolah'] = $this->data['idPSekolah'];
$row['idPPeriode'] = $this->data['idPPeriode'];
$row['idPPStatus'] = $this->data['idPPStatus'];
// Dispatch job untuk memproses row
ImportDataJob::dispatch($row);
}
// $row['jenis'] = 'importGuruSplit';
// $row['idUser'] = $this->data['idUser'];
// $row['idPSekolah'] = $this->data['idPSekolah'];
// $row['idPPeriode'] = $this->data['idPPeriode'];
// $row['idPKKode'] = $this->data['idPKKode'];
// $row['idMStatus'] = $this->data['idMStatus'];
// $row['idPPKelas'] = $this->data['idPPKelas'];
// $row['idPPStatus'] = $this->data['idPPStatus'];
ImportDataJob::dispatch($row);
// $row['idPPStatus'] = $this->data['idPPStatus'];
// ImportDataJob::dispatch($row);
}
}
}
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 to comment