package io.gmss.fiscad.repositories.metadata;

import io.gmss.fiscad.entities.metadata.MobileDataActeurConcerne;
import io.gmss.fiscad.entities.metadata.MobileDataBatiment;
import org.springframework.data.jpa.repository.JpaRepository;

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

public interface MobileDataBatimentRepository extends JpaRepository<MobileDataBatiment, Long> {
    //Optional<MobileDataBatiment>  findMobileDataBatimentByBatimentPaylaod_TerminalIdAndBatimentPaylaod_ExternalKey(Long terminalId, Long externalKey);
    Optional<MobileDataBatiment> findFirstByTerminalIdAndEnqueteExternalKey(Long terminalId,Long ExternalKey);
    List<MobileDataBatiment> findAllByTraiterIsFalseAndTerminalId(Long TerminalId);
}
