|
|
|
|
@ -6,14 +6,11 @@ import org.springframework.data.jpa.repository.Query;
|
|
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public interface TransactionLogRepository extends JpaRepository<TransactionLog, Long> {
|
|
|
|
|
TransactionLog findByTransactionId(String transactionId);
|
|
|
|
|
|
|
|
|
|
@Query(value = "SELECT t FROM TBL_AC_TRANSACTION_LOGS t WHERE t.sgt_gntrdate BETWEEN :from AND :to", nativeQuery = true)
|
|
|
|
|
List<TransactionLog> getTransactionLogByDate(
|
|
|
|
|
@Param("from") LocalDate fromDate,
|
|
|
|
|
@Param("to") LocalDate toDate
|
|
|
|
|
);
|
|
|
|
|
@Query(value = "SELECT * FROM TBL_AC_TRANSACTION_LOGS WHERE sgt_gntrdate BETWEEN :fromDate AND :toDate", nativeQuery = true)
|
|
|
|
|
List<TransactionLog> getTransactionLogByDate(LocalDate fromDate, LocalDate toDate);
|
|
|
|
|
}
|
|
|
|
|
|