package com.xhpc.evcs.jpa;

import com.xhpc.evcs.domain.EtOrderMapping;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.QueryByExampleExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface OrderMappingRepository extends JpaRepository<EtOrderMapping, String>,
        QueryByExampleExecutor<EtOrderMapping>, JpaSpecificationExecutor<EtOrderMapping> {


    Optional<EtOrderMapping> findByEvcsOrderNo(String chargingOrderSeq);

}
