package com.dbnt.kcscbackend.standardCode.repository;

import com.dbnt.kcscbackend.standardCode.entity.TnDocumentInfo;
import com.dbnt.kcscbackend.standardCode.service.TnDocumentInfoInterface;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface TnDocumentInfoRepository extends JpaRepository<TnDocumentInfo, Integer> {
  @Query(value = "select * from sp_get_tn_document_info_by_group_cd(null, :docCode)", nativeQuery = true)
  List<TnDocumentInfoInterface> spGetTnDocumentInfoByGroupCd(String docCode);
}
