|
@@ -20,6 +20,6 @@ public interface TbFcltFailHsRepository extends JpaRepository<TbFcltFailHs, Stri
|
|
|
|
|
|
@Query(value = "SELECT TO_NUMBER(LPAD(NVL(MAX(SUBSTR(FAIL_HS_SEQ, -4)), '0000') + 1, 4, '0')) AS NEWID " +
|
|
|
" FROM TB_FCLT_FAIL_HS " +
|
|
|
- " WHERE SUBSTR(FAIL_HS_SEQ, 1, 6) = '202203'", nativeQuery = true)
|
|
|
+ " WHERE SUBSTR(FAIL_HS_SEQ, 1, 6) = TO_CHAR(SYSDATE, 'YYYYMM')", nativeQuery = true)
|
|
|
Integer findNewHsSeq(@Param("currYear") String currYear);
|
|
|
}
|