Done ticket GEPAFINBE-92

This commit is contained in:
nisha
2024-11-15 19:55:24 +05:30
parent 526a831357
commit 7485cead14
26 changed files with 257 additions and 164 deletions

View File

@@ -7,5 +7,5 @@ import java.util.List;
public interface EmailLogRepository extends JpaRepository<EmailLogEntity,Long> {
List<EmailLogEntity> findByIdAndEmailTypeOrderByCreatedDateDesc(Long id, String emailType);
List<EmailLogEntity> findByUserIdAndEntityIdAndEntityType(Long userId,Long entityId,String entityType);
}

View File

@@ -1,16 +0,0 @@
package net.gepafin.tendermanagement.repositories;
import net.gepafin.tendermanagement.entities.EmailTrackingEntity;
import net.gepafin.tendermanagement.entities.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface EmailTrackingRepository extends JpaRepository<EmailTrackingEntity,Long> {
List<EmailTrackingEntity> findFirstByEntityTypeAndEntityIdAndUser(
String entityType, Long entityId, UserEntity user
);
}