Skip to content

Commit

Permalink
Update Rilis v7.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
masadi committed Jan 19, 2024
1 parent df88cc5 commit ebc886a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
12 changes: 6 additions & 6 deletions app/Console/Commands/EraporUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ public function handle()
'semester_id' => 20231,
'nama' => '2023/2024 Ganjil',
'semester' => 1,
'periode_aktif' => 1,
'periode_aktif' => 0,
],
/*[
[
'semester_id' => 20232,
'nama' => '2023/2024 Genap',
'semester' => 2,
'periode_aktif' => 0,
]*/
'periode_aktif' => 1,
]
],
],
];
Expand Down Expand Up @@ -216,8 +216,8 @@ public function handle()
}
}
}
Semester::where('semester_id', '<>', '20231')->update(['periode_aktif' => 0]);
Semester::where('semester_id', '20231')->update(['periode_aktif' => 1]);
Semester::where('semester_id', '<>', '20232')->update(['periode_aktif' => 0]);
Semester::where('semester_id', '20232')->update(['periode_aktif' => 1]);
$guru = Guru::whereRaw('guru_id <> guru_id_dapodik')->first();
if($guru){
$semester = Semester::where('periode_aktif', 1)->first();
Expand Down
10 changes: 8 additions & 2 deletions app/Console/Commands/SinkronDapodik.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SinkronDapodik extends Command
*
* @var string
*/
protected $signature = 'sinkron:dapodik {satuan?} {akses?} {sekolah_id?}';
protected $signature = 'sinkron:dapodik {satuan?} {akses?} {sekolah_id?} {semester_id?}';

/**
* The console command description.
Expand All @@ -69,7 +69,13 @@ public function __construct()
*/
public function handle()
{
$semester = Semester::where('periode_aktif', 1)->first();
$semester = Semester::where(function($query){
if($this->argument('semester_id')){
$query->where('semester_id', $this->argument('semester_id'));
} else {
$query->where('periode_aktif', 1);
}
})->first();
$list_data = [
'semua_data',
/*'jurusan',
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/SinkronisasiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private function ref_erapor(){
];
}
public function proses_sync(){
$argumen = ['satuan' => request()->satuan, 'akses' => 1, 'sekolah_id' => request()->sekolah_id];
$argumen = ['satuan' => request()->satuan, 'akses' => 1, 'sekolah_id' => request()->sekolah_id, 'semester_id' => request()->semester_id];
Artisan::call('sinkron:'.request()->tujuan, $argumen);
}
public function hitung(){
Expand Down
2 changes: 1 addition & 1 deletion app_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.3
7.0.4
7 changes: 7 additions & 0 deletions resources/views/changelog.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<div id="form">
<legend>
<h3>Versi 7.0.4</h3>
</legend>
<ol>
<li><b class="text-success">[Pembaharuan]</b> Rilis Tahun Ajaran 2023/2024 Semester Genap</li>
<li><b class="text-danger">[Perbaikan]</b> Akses sinkronisasi berdasar tahun ajaran terpilih</li>
</ol>
<legend>
<h3>Versi 7.0.3</h3>
</legend>
Expand Down

0 comments on commit ebc886a

Please sign in to comment.