update
parent
a835941849
commit
685c792ae5
|
@ -37,12 +37,11 @@ public function model(array $row)
|
|||
return new DatasetTable41A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'jenis_dokumen' => $row[0],
|
||||
'kegiatan' => $row[1],
|
||||
'komisi_penilai' => $row[2],
|
||||
'pemrakarsa' => $row[3],
|
||||
'dokumen' => $row[4],
|
||||
'nomor_rekomendasi' => $row[5],
|
||||
'jenis_dokumen' => $row[2],
|
||||
'kegiatan' => $row[3],
|
||||
'komisi_penilai' => $row[4],
|
||||
'pemrakarsa' => $row[5],
|
||||
'nomor_rekomendasi' => $row[6],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,11 +37,11 @@ public function model(array $row)
|
|||
return new DatasetTable41([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'jenis_dokumen' => $row[0],
|
||||
'kegiatan' => $row[1],
|
||||
'komisi_penilai' => $row[2],
|
||||
'pemrakarsa' => $row[3],
|
||||
'dokumen' => $row[4],
|
||||
'jenis_dokumen' => $row[2],
|
||||
'kegiatan' => $row[3],
|
||||
'komisi_penilai' => $row[4],
|
||||
'pemrakarsa' => $row[5],
|
||||
'dokumen' => $row[6],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,18 +31,18 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null && $row[7] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable42([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'nama_perusahaan' => $row[0],
|
||||
'lokasi' => $row[1],
|
||||
'jenis_kegiatan' => $row[2],
|
||||
'jenis_izin' => $row[3],
|
||||
'nomor_sk' => $row[4],
|
||||
'dokumen' => $row[5],
|
||||
'nama_perusahaan' => $row[2],
|
||||
'lokasi' => $row[3],
|
||||
'jenis_kegiatan' => $row[4],
|
||||
'jenis_izin' => $row[5],
|
||||
'nomor_sk' => $row[6],
|
||||
'dokumen' => $row[7],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,16 +31,16 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable43A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'lokasi' => $row[0],
|
||||
'nama_perusahaan' => $row[1],
|
||||
'waktu' => $row[2],
|
||||
'hasil_pengawasan' => $row[3],
|
||||
'lokasi' => $row[1],
|
||||
'nama_perusahaan' => $row[3],
|
||||
'waktu' => $row[4],
|
||||
'hasil_pengawasan' => $row[5],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,16 +31,16 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable43B([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'lokasi' => $row[0],
|
||||
'nama_perusahaan' => $row[1],
|
||||
'waktu' => $row[2],
|
||||
'hasil_pengawasan' => $row[3],
|
||||
'lokasi' => $row[1],
|
||||
'nama_perusahaan' => $row[3],
|
||||
'waktu' => $row[4],
|
||||
'hasil_pengawasan' => $row[5],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,16 +31,16 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable43([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'lokasi' => $row[0],
|
||||
'nama_perusahaan' => $row[1],
|
||||
'waktu' => $row[2],
|
||||
'hasil_pengawasan' => $row[3],
|
||||
'lokasi' => $row[1],
|
||||
'nama_perusahaan' => $row[3],
|
||||
'waktu' => $row[4],
|
||||
'hasil_pengawasan' => $row[5],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,13 +37,13 @@ public function model(array $row)
|
|||
return new DatasetTable44A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'kecamatan' => $row[0],
|
||||
'lokasi' => $row[1],
|
||||
'jenis_bencana' => $row[2],
|
||||
'jumlah_area_terdampak' => $row[3],
|
||||
'jumlah_korban_mengungsi' => $row[4],
|
||||
'jumlah_korban_meninggal' => $row[5],
|
||||
'perkiraan_kerugian' => $row[6],
|
||||
'kecamatan' => $row[1],
|
||||
'lokasi' => $row[2],
|
||||
'jenis_bencana' => $row[3],
|
||||
'jumlah_area_terdampak' => $row[4],
|
||||
'jumlah_korban_mengungsi' => $row[5],
|
||||
'jumlah_korban_meninggal' => $row[6],
|
||||
'perkiraan_kerugian' => $row[7],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,22 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if (
|
||||
$row[0] === null &&
|
||||
$row[1] === null &&
|
||||
$row[2] === null &&
|
||||
$row[3] === null &&
|
||||
$row[4] === null &&
|
||||
$row[5] === null &&
|
||||
$row[6] === null &&
|
||||
$row[7] === null &&
|
||||
$row[8] === null &&
|
||||
$row[9] === null &&
|
||||
$row[10] === null &&
|
||||
$row[11] === null &&
|
||||
$row[12] === null &&
|
||||
$row[13] === null
|
||||
) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable44B([
|
||||
|
|
|
@ -37,12 +37,12 @@ public function model(array $row)
|
|||
return new DatasetTable44([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'kecamatan' => $row[0],
|
||||
'lokasi' => $row[1],
|
||||
'jenis_bencana' => $row[2],
|
||||
'jumlah_area_terdampak' => $row[3],
|
||||
'jumlah_korban_mengungsi' => $row[4],
|
||||
'jumlah_korban_meninggal' => $row[5],
|
||||
'kecamatan' => $row[1],
|
||||
'lokasi' => $row[2],
|
||||
'jenis_bencana' => $row[3],
|
||||
'jumlah_area_terdampak' => $row[4],
|
||||
'jumlah_korban_mengungsi' => $row[5],
|
||||
'jumlah_korban_meninggal' => $row[6],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,17 +31,17 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable45([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'kabupaten_kota' => $row[0],
|
||||
'luas' => $row[1],
|
||||
'jumlah_penduduk' => $row[2],
|
||||
'pertumbuhan_penduduk' => $row[3],
|
||||
'kepadatan_penduduk' => $row[4],
|
||||
'kabupaten_kota' => $row[1],
|
||||
'luas' => $row[2],
|
||||
'jumlah_penduduk' => $row[3],
|
||||
'pertumbuhan_penduduk' => $row[4],
|
||||
'kepadatan_penduduk' => $row[5],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,19 +31,19 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null && $row[7] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable46([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'kabupaten_kota' => $row[0],
|
||||
'lokasi' => $row[1],
|
||||
'nama_tpa' => $row[2],
|
||||
'jenis_tpa' => $row[3],
|
||||
'luas_tpa' => $row[4],
|
||||
'kapasitas' => $row[5],
|
||||
'volume_eksisting' => $row[6],
|
||||
'kabupaten_kota' => $row[1],
|
||||
'lokasi' => $row[2],
|
||||
'nama_tpa' => $row[3],
|
||||
'jenis_tpa' => $row[4],
|
||||
'luas_tpa' => $row[5],
|
||||
'kapasitas' => $row[6],
|
||||
'volume_eksisting' => $row[7],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,19 +31,19 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null && $row[7] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable47([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'kabupaten_kota' => $row[0],
|
||||
'lokasi' => $row[1],
|
||||
'jumlah_penduduk' => $row[2],
|
||||
'timbulan_sampah' => $row[3],
|
||||
'status_open_dumping' => $row[4],
|
||||
'status_sanitary_landfill' => $row[5],
|
||||
'status_controlled_landfill' => $row[6],
|
||||
'kabupaten_kota' => $row[1],
|
||||
'lokasi' => $row[2],
|
||||
'jumlah_penduduk' => $row[3],
|
||||
'timbulan_sampah' => $row[4],
|
||||
'status_open_dumping' => $row[5],
|
||||
'status_sanitary_landfill' => $row[6],
|
||||
'status_controlled_landfill' => $row[7],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,22 +31,36 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if (
|
||||
$row[0] === null &&
|
||||
$row[1] === null &&
|
||||
$row[2] === null &&
|
||||
$row[3] === null &&
|
||||
$row[4] === null &&
|
||||
$row[5] === null &&
|
||||
$row[6] === null &&
|
||||
$row[7] === null &&
|
||||
$row[8] === null &&
|
||||
$row[9] === null &&
|
||||
$row[10] === null &&
|
||||
$row[11] === null
|
||||
) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable48A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'lokasi' => $row[0],
|
||||
'nama_bank_sampah' => $row[1],
|
||||
'sk' => $row[2],
|
||||
'jumlah_sampah' => $row[3],
|
||||
'status' => $row[4],
|
||||
'kelurahan' => $row[5],
|
||||
'rw' => $row[6],
|
||||
'jumlah_penabung' => $row[7],
|
||||
'jumlah_karyawan' => $row[8],
|
||||
'omset' => $row[9],
|
||||
'lokasi' => $row[1],
|
||||
'tahun' => $row[2],
|
||||
'nama_bank_sampah' => $row[3],
|
||||
'sk' => $row[4],
|
||||
'jumlah_sampah' => $row[5],
|
||||
'status' => $row[6],
|
||||
'kelurahan' => $row[7],
|
||||
'rw' => $row[8],
|
||||
'jumlah_penabung' => $row[9],
|
||||
'jumlah_karyawan' => $row[10],
|
||||
'omset' => $row[11],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,21 +31,34 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if (
|
||||
$row[0] === null &&
|
||||
$row[1] === null &&
|
||||
$row[2] === null &&
|
||||
$row[3] === null &&
|
||||
$row[4] === null &&
|
||||
$row[5] === null &&
|
||||
$row[6] === null &&
|
||||
$row[7] === null &&
|
||||
$row[8] === null &&
|
||||
$row[9] === null &&
|
||||
$row[10] === null
|
||||
) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable48([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'lokasi' => $row[0],
|
||||
'nama_bank_sampah' => $row[1],
|
||||
'sk' => $row[2],
|
||||
'jumlah_sampah' => $row[3],
|
||||
'status' => $row[4],
|
||||
'wilayah_pelayanan' => $row[5],
|
||||
'jumlah_penabung' => $row[6],
|
||||
'jumlah_karyawan' => $row[7],
|
||||
'omset' => $row[8],
|
||||
'lokasi' => $row[1],
|
||||
'tahun' => $row[2],
|
||||
'nama_bank_sampah' => $row[3],
|
||||
'sk' => $row[4],
|
||||
'jumlah_sampah' => $row[5],
|
||||
'status' => $row[6],
|
||||
'wilayah_pelayanan' => $row[7],
|
||||
'jumlah_penabung' => $row[8],
|
||||
'jumlah_karyawan' => $row[9],
|
||||
'omset' => $row[10],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,15 +31,15 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable49([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'nama_kegiatan' => $row[0],
|
||||
'lokasi_kegiatan' => $row[1],
|
||||
'pelaksana_kegiatan' => $row[2],
|
||||
'nama_kegiatan' => $row[1],
|
||||
'lokasi_kegiatan' => $row[2],
|
||||
'pelaksana_kegiatan' => $row[3],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,15 +31,16 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable50([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'pihak_mengadu' => $row[0],
|
||||
'masalah' => $row[1],
|
||||
'proses_pengaduan' => $row[2],
|
||||
'pihak_mengadu' => $row[1],
|
||||
'masalah' => $row[2],
|
||||
'tahun' => $row[3],
|
||||
'proses_pengaduan' => $row[4],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,16 +31,16 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable51([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'nama_lsm' => $row[0],
|
||||
'lokasi' => $row[1],
|
||||
'akta_pendirian' => $row[2],
|
||||
'alamat' => $row[3],
|
||||
'nama_lsm' => $row[1],
|
||||
'lokasi' => $row[2],
|
||||
'akta_pendirian' => $row[3],
|
||||
'alamat' => $row[4],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,16 +31,16 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable52([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'tingkat_pendidikan' => $row[0],
|
||||
'lakilaki' => $row[1],
|
||||
'perempuan' => $row[2],
|
||||
'jumlah' => $row[3],
|
||||
'tingkat_pendidikan' => $row[1],
|
||||
'lakilaki' => $row[2],
|
||||
'perempuan' => $row[3],
|
||||
'jumlah' => $row[4],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,12 +37,12 @@ public function model(array $row)
|
|||
return new DatasetTable53([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'nama_instansi' => $row[0],
|
||||
'jabatan_fungsional' => $row[1],
|
||||
'laki_laki' => $row[2],
|
||||
'perempuan' => $row[3],
|
||||
'staf_diklat_l' => $row[4],
|
||||
'staf_diklat_p' => $row[5],
|
||||
'nama_instansi' => $row[1],
|
||||
'jabatan_fungsional' => $row[2],
|
||||
'laki_laki' => $row[3],
|
||||
'perempuan' => $row[4],
|
||||
'staf_diklat_l' => $row[5],
|
||||
'staf_diklat_p' => $row[6],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,16 +31,16 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable54([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'nama' => $row[0],
|
||||
'nama_penghargaan' => $row[1],
|
||||
'pemberi_penghargaan' => $row[2],
|
||||
'tahun_penghargaan' => $row[3],
|
||||
'nama' => $row[1],
|
||||
'nama_penghargaan' => $row[2],
|
||||
'pemberi_penghargaan' => $row[3],
|
||||
'tahun_penghargaan' => $row[4],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,16 +31,16 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable55([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'nama_kegiatan' => $row[0],
|
||||
'instansi' => $row[1],
|
||||
'kelompok_sasaran' => $row[2],
|
||||
'waktu_pelaksanaan' => $row[3],
|
||||
'nama_kegiatan' => $row[1],
|
||||
'instansi' => $row[2],
|
||||
'kelompok_sasaran' => $row[3],
|
||||
'waktu_pelaksanaan' => $row[4],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,15 +31,15 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable56([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'uraian' => $row[0],
|
||||
'satu_tahun_sebelumnya' => $row[1],
|
||||
'dua_tahun_sebelumnya' => $row[2],
|
||||
'uraian' => $row[1],
|
||||
'satu_tahun_sebelumnya' => $row[2],
|
||||
'dua_tahun_sebelumnya' => $row[3],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,15 +31,15 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable57([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'uraian' => $row[0],
|
||||
'satu_tahun_sebelumnya' => $row[1],
|
||||
'dua_tahun_sebelumnya' => $row[2],
|
||||
'uraian' => $row[1],
|
||||
'satu_tahun_sebelumnya' => $row[2],
|
||||
'dua_tahun_sebelumnya' => $row[3],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,17 +31,17 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable58([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'jenis_produk_hukum_bidang_lingkungan_hidup' => $row[0],
|
||||
'jenis_produk_hukum_bidang_kehutanan' => $row[1],
|
||||
'nomor_tanggal' => $row[2],
|
||||
'tentang' => $row[3],
|
||||
'dokumen' => $row[4],
|
||||
'jenis_produk_hukum_bidang_lingkungan_hidup' => $row[1],
|
||||
'jenis_produk_hukum_bidang_kehutanan' => $row[2],
|
||||
'nomor_tanggal' => $row[3],
|
||||
'tentang' => $row[4],
|
||||
'dokumen' => $row[5],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,15 +31,15 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable59([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'sumber' => $row[0],
|
||||
'peruntukan_anggaran' => $row[1],
|
||||
'jumlah_anggaran' => $row[2],
|
||||
'sumber' => $row[1],
|
||||
'peruntukan_anggaran' => $row[2],
|
||||
'jumlah_anggaran' => $row[3],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,15 +31,15 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable60A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'sumber' => $row[0],
|
||||
'jumlah_2022' => $row[1],
|
||||
'jumlah_2023' => $row[2],
|
||||
'sumber' => $row[1],
|
||||
'jumlah_2022' => $row[2],
|
||||
'jumlah_2023' => $row[3],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,14 +31,14 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable60([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'sumber' => $row[0],
|
||||
'jumlah' => $row[1],
|
||||
'sumber' => $row[1],
|
||||
'jumlah' => $row[2],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,16 +31,16 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
return new DatasetTable61([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'lokasi' => $row[0],
|
||||
'inovasi' => $row[1],
|
||||
'deskripsi_inovasi' => $row[2],
|
||||
'dasar_hukum_inovasi' => $row[3],
|
||||
'lokasi' => $row[1],
|
||||
'inovasi' => $row[2],
|
||||
'deskripsi_inovasi' => $row[3],
|
||||
'dasar_hukum_inovasi' => $row[4],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ return new class extends Migration
|
|||
$table->id('DatasetTable48Id');
|
||||
$table->integer('dataset_id');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('tahun')->nullable();
|
||||
$table->string('nama_bank_sampah')->nullable();
|
||||
$table->string('sk')->nullable(); // Nomor SK
|
||||
$table->bigInteger('jumlah_sampah')->nullable(); // Kg per bulan
|
||||
|
|
|
@ -15,6 +15,7 @@ return new class extends Migration
|
|||
$table->id('DatasetTable48AId');
|
||||
$table->integer('dataset_id');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('tahun')->nullable();
|
||||
$table->string('nama_bank_sampah')->nullable();
|
||||
$table->string('sk')->nullable(); // Nomor SK
|
||||
$table->float('jumlah_sampah')->default(0); // Kg per bulan, pakai decimal
|
||||
|
|
|
@ -16,6 +16,7 @@ return new class extends Migration
|
|||
$table->integer('dataset_id');
|
||||
$table->string('pihak_mengadu')->nullable();
|
||||
$table->text('masalah')->nullable();
|
||||
$table->string('tahun')->nullable();
|
||||
$table->text('proses_pengaduan')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
|
|
Loading…
Reference in New Issue