package io.gmss.fiscad.repositories.metadata;

import io.gmss.fiscad.entities.metadata.MobileDataMembreGroupe;
import io.gmss.fiscad.entities.metadata.MobileDataParcelle;
import io.gmss.fiscad.entities.metadata.MobileDataUpload;
import org.modelmapper.internal.bytebuddy.dynamic.DynamicType;
import org.springframework.data.jpa.repository.JpaRepository;

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

public interface MobileDataParcelleRepository extends JpaRepository<MobileDataParcelle, Long> {
    //Optional<MobileDataParcelle> findByParcellePayLoad_TerminalIdAndParcellePayLoad_ExternalKey(Long terminalId,Long externalKey);
    Optional<MobileDataParcelle> findFirstByTerminalIdAndEnqueteExternalKey(Long terminalId,Long ExternalKey);

    List<MobileDataParcelle> findAllByTraiterIsFalseAndTerminalId(Long TerminalId);
}
