|
@@ -21,6 +21,9 @@ public interface TbFcltSubjRepository extends JpaRepository<TbFcltSubj, Long>, J
|
|
|
@Query(value = "SELECT NVL(MAX(SUBJ_NMBR), 0) + 1 AS NEWID FROM TB_FCLT_SUBJ", nativeQuery = true)
|
|
|
Long getNewNmbr();
|
|
|
|
|
|
+ @Query(value = "SELECT NVL(MAX(SUBJ_ID), 0) + 1 AS NEWID FROM TB_FCLT_SUBJ where FCLT_TYPE = :fcltType", nativeQuery = true)
|
|
|
+ Long getNewSubjId(@Param("fcltType") String fcltType);
|
|
|
+
|
|
|
@Query("select p from TbFcltSubj p where p.fcltType = :fcltType")
|
|
|
List<TbFcltSubj> findAllByFcltType(@Param("fcltType") String fcltType);
|
|
|
|