Merged in izzati-ujrah (pull request #81)
update untuk kemaskini data arcc
This commit is contained in:
@@ -969,4 +969,21 @@ class CallCenterController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function getcawnotiskemaskini($notisid)
|
||||
{
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$arraybatch = [];
|
||||
$batchnotis = Notis::on('mysql7')->where('id',$notisid)->get();
|
||||
$cawangan_all = Cawangan::on('mysql7')->get();
|
||||
$cawnotis_all = [];
|
||||
foreach ($batchnotis as $index => $cawangan){
|
||||
$notis = CawanganNotis::on('mysql7')
|
||||
->join('arrahn_master_db', 'arrahn_master_db.kodcaw', '=', 'cawangan_notis.kodcaw')
|
||||
->where('notis_id',$notisid)->get();
|
||||
}
|
||||
return response()->json($notis);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+7
-1
@@ -612,6 +612,12 @@ $router->group(['prefix'=>'api'], function () use ($router){
|
||||
$router->get('rekodblast/{kodcaw}',['uses'=>'StokAuditController@rekodblast']);
|
||||
$router->get('rekodblastsms/{kodcaw}',['uses'=>'StokAuditController@rekodblastsms']);
|
||||
|
||||
//API notis peringatan cawangan
|
||||
$router->get('/cawangan/getcawnotis/{kodcaw}/{notisid}',['uses'=>'CawanganCallCenterController@getcawnotis']);
|
||||
$router->get('/cawangan/senarainotisperingatan/{kodcaw}',['uses'=>'CawanganCallCenterController@senarainotisperingatan']);
|
||||
$router->get('/cawangan/getcawnotisall/{kodcaw}',['uses'=>'CawanganCallCenterController@getcawnotisall']);
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
@@ -863,7 +869,7 @@ $router->group(['prefix'=>'arcc'], function () use ($router){
|
||||
$router->get('getfasa',['uses'=>'CallCenterController@getfasa']);
|
||||
$router->get('getdatanotiskedua/{kodcaw}/{notisid}/{fasa}',['uses'=>'CallCenterController@getdatanotiskedua']);
|
||||
$router->post('/notis/blastwasapbysagkedua',['uses'=>'CallCenterController@blastwasapbysagkedua']);
|
||||
|
||||
$router->get('getcawnotiskemaskini/{notisid}',['uses'=>'CallCenterController@getcawnotiskemaskini']);
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user