package com.crm.custom.dao.repository;

import com.crm.rely.backend.core.pojo.table.SysCountryTable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: houn
 */
@Repository
public interface SysCountryRepository extends JpaRepository<SysCountryTable, Long>, JpaSpecificationExecutor<SysCountryTable> {

    List<SysCountryTable> getAllByPidAndValidForStartedOrderByEnName(Long pid,Integer validForStarted);

    SysCountryTable getByCode(String code);
}
