package egovframework.dbnt.kcsc.standardCode.repository;

import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentGroup;
import egovframework.dbnt.kcsc.standardCode.service.StandardCodeTreeInterface;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface TnDocumentGroupRepository extends JpaRepository<TnDocumentGroup, Integer> {

  @Query(value = "select * from sp_get_tn_document_code_by_tree()", nativeQuery = true)
  public List<StandardCodeTreeInterface> spGetTnDocumentCodeByTree();

}
