package io.gmss.fiscad.repositories.rfu.parametre;

import io.gmss.fiscad.entities.rfu.parametre.Exercice;
import io.gmss.fiscad.entities.rfu.parametre.ZoneRfu;
import io.gmss.fiscad.paylaods.response.BlocSyncResponse;
import io.gmss.fiscad.paylaods.response.ZoneRfuSyncResponse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Optional;

public interface ZoneRfuRepository extends JpaRepository<ZoneRfu, Long> {
    @Query(value = "select z.id, z.code, z.nom " +
            " from zone_rfu z " +
            " where z.deleted is false ", nativeQuery = true)
    List<ZoneRfuSyncResponse> getZoneRfuResponse();


}

