This commit is contained in:
24
api/app/Services/Intranet/Cadastro/NotaVersaoService.php
Normal file
24
api/app/Services/Intranet/Cadastro/NotaVersaoService.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Intranet\Cadastro;
|
||||
|
||||
use App\Enums\Intranet\Sistema;
|
||||
use App\Services\Service;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class NotaVersaoService extends Service
|
||||
{
|
||||
public static function index()
|
||||
{
|
||||
return DB::table('intranet.cadastro_nota_versao')
|
||||
->select([
|
||||
'cadastro_nota_versao.versao',
|
||||
'cadastro_nota_versao.titulo',
|
||||
'cadastro_nota_versao.descricao',
|
||||
'cadastro_nota_versao.created_at',
|
||||
])
|
||||
->where('cadastro_nota_versao.sistema_id', Sistema::CONECTASUS)
|
||||
->orderByDesc('cadastro_nota_versao.created_at')
|
||||
->get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user