@Param 추가
parent
04e4ba2d0d
commit
2b905a8f82
|
|
@ -1,10 +1,10 @@
|
|||
package com.dbnt.kcscbackend.standardCode.repository;
|
||||
|
||||
|
||||
import com.dbnt.kcscbackend.standardCode.entity.TnDocumentContent;
|
||||
import com.dbnt.kcscbackend.standardCode.service.StandardCodeContentInterface;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
|
@ -12,13 +12,21 @@ import java.util.Optional;
|
|||
public interface TnDocumentContentRepository extends JpaRepository<TnDocumentContent, Integer> {
|
||||
|
||||
@Query(value = "select * from get_recent_full_context_by_content(:docCode, :docPart)", nativeQuery = true)
|
||||
List<StandardCodeContentInterface> getRecentFullContextByContent(String docCode, String docPart);
|
||||
List<StandardCodeContentInterface> getRecentFullContextByContent(
|
||||
@Param("docCode") String docCode,
|
||||
@Param("docPart") String docPart);
|
||||
|
||||
@Query(value = "select * from get_year_full_context_by_content(:docInfoSeq, :docCode, :docPart, null, null)", nativeQuery = true)
|
||||
List<StandardCodeContentInterface> getYearFullContextByContent(Integer docInfoSeq, String docCode, String docPart);
|
||||
List<StandardCodeContentInterface> getYearFullContextByContent(
|
||||
@Param("docInfoSeq") Integer docInfoSeq,
|
||||
@Param("docCode") String docCode,
|
||||
@Param("docPart") String docPart);
|
||||
|
||||
@Query(value = "select * from sp_get_recent_full_context_by_content(:docCode, :docPart, :ymd)", nativeQuery = true)
|
||||
List<StandardCodeContentInterface> spGetRecentFullContextByContent(String docCode, String docPart, String ymd);
|
||||
List<StandardCodeContentInterface> spGetRecentFullContextByContent(
|
||||
@Param("docCode") String docCode,
|
||||
@Param("docPart") String docPart,
|
||||
@Param("ymd") String ymd);
|
||||
|
||||
Optional<TnDocumentContent> findByDocContSeq(Integer docContSeq);
|
||||
|
||||
|
|
|
|||
|
|
@ -4,13 +4,14 @@ 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 org.springframework.data.repository.query.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
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);
|
||||
List<TnDocumentInfoInterface> spGetTnDocumentInfoByGroupCd(@Param("docCode") String docCode);
|
||||
|
||||
Optional<TnDocumentInfo> findByDocFileGrpId(String fileSeq);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue